Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI-1287: Use external go-ps1 package for confluent prompt #1042

Merged
merged 5 commits into from
Oct 27, 2021
Merged

Conversation

brianstrauch
Copy link
Member

Checklist

  1. [CRUCIAL] Is the change for CP or CCloud functionalities that are already live in prod?

    • yes: ok
  2. Did you add/update any commands that accept secrets as args/flags?

    • no: ok

What

Use https://github.com/confluentinc/go-ps1 in place of the old internal package.

@brianstrauch brianstrauch requested a review from a team as a code owner October 18, 2021 20:20
}

promptCmd.Flags().StringP("format", "f", `(confluent|{{color "black" "%C"}})`, "The format string to use. See the help for details.")
promptCmd.Flags().BoolP("no-color", "g", false, "Do not include ANSI color codes in the output.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer set the color or parse a customized timeout?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default format string doesn't use colors anymore, but a user can use colors if they choose by changing the format string (the --format flag).

The --timeout flag still exists (line 127)

@MuweiHe MuweiHe merged commit 98936ef into main Oct 27, 2021
@MuweiHe MuweiHe deleted the go-ps1 branch October 27, 2021 20:29
@brianstrauch brianstrauch changed the title Use external go-ps1 package for confluent prompt CLI-1287: Use external go-ps1 package for confluent prompt Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants