-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Add consistent aliases #362
base: main
Are you sure you want to change the base?
Conversation
internal/commands/util.go
Outdated
fmt.Printf("⚠️ Deprecation Warning: The alias '%s' is deprecated and will be removed in a future release.\n", deprecatedAlias) | ||
fmt.Printf(" Please use '%s' instead.\n\n", newCommand) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These could be outputted to stderr to avoid problems with parsing the output.
Warning level progress messages could also be used. Those are available through commands.Executor
. That way the formatting would be in sync with warnings we output (here) when user cancel the operation with CTRL+C
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kangasta I changed to print the messages to stderr. That is a good change.
I do not understand the changes you are proposing to the progress message. The deprecation message is shown right before the command executes so I am not sure why is related to the progress of the command execution.
No description provided.