-
Notifications
You must be signed in to change notification settings - Fork 664
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
[sonic-installer] Hyphens instead of underscores in command and subcommands #983
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qiluo-msft
reviewed
Jul 11, 2020
…own 'amon' docker
jleveque
changed the title
[sonic-installer] Hyphens instead of underscores in commands/subcommands
[sonic-installer] Hyphens instead of underscores in command/subcommands
Jul 11, 2020
jleveque
changed the title
[sonic-installer] Hyphens instead of underscores in command/subcommands
[sonic-installer] Hyphens instead of underscores in command and subcommands
Jul 11, 2020
qiluo-msft
reviewed
Jul 13, 2020
qiluo-msft
reviewed
Jul 13, 2020
qiluo-msft
approved these changes
Jul 13, 2020
Retest this please |
jleveque
added a commit
that referenced
this pull request
Sep 1, 2020
Ensure aliases.ini gets installed with the sonic_installer package to enable backward-compatibility with the versions of subcommands which contain underscores. This was missed in #983
malletvapid23
added a commit
to malletvapid23/Sonic-Utility
that referenced
this pull request
Aug 3, 2023
…d (#995) Root group name was changed from `cli` to `sonic_installer` in sonic-net/sonic-utilities#983. However, `verify-next-image` subcommand was being added in an already-open PR sonic-net/sonic-utilities#979 at the time. It did not get updated before merge. This aligns it with the new group name.
malletvapid23
added a commit
to malletvapid23/Sonic-Utility
that referenced
this pull request
Aug 3, 2023
Ensure aliases.ini gets installed with the sonic_installer package to enable backward-compatibility with the versions of subcommands which contain underscores. This was missed in sonic-net/sonic-utilities#983
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Replace underscores with hyphens in all sonic-installer subcommands as well as the root command itself.
Install two entry points for sonic-installer:
sonic-installer
andsonic_installer
. This allows for backward compatibility and time for users to transition from using the underscore versions to the hyphenated versions.Replace underscores with hyphens in the following subcommands:
Print deprecation warnings to stderr if issued command line contains any deprecated versions with underscores
Bonus: Addition of the AliasedGroup base class also adds support for abbreviated subcommands
Fixed some style issues which did not align with PEP8 standards
Eliminate duplicate code by adding DOCKER_CONTAINER_LIST; Remove unknown 'amon' container from the list
This is work towards resolving issue #982. We can set a deprecation date for the underscore versions of the commands, and when that date arrives, we can simply delete all aliases and deprecation warnings.