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

feat: Add consistent aliases #362

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

paketeserrano
Copy link
Contributor

No description provided.

@paketeserrano paketeserrano requested a review from a team as a code owner January 29, 2025 15:30
Comment on lines 238 to 239
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)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

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