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

Make config command support abbreviation #893

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

qiluo-msft
Copy link
Contributor

@qiluo-msft qiluo-msft commented Apr 29, 2020

Fix #532

@@ -15,6 +15,7 @@
from swsssdk import ConfigDBConnector
from swsssdk import SonicV2Connector
from minigraph import parse_device_desc_xml
from click_default_group import DefaultGroup
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to import click_default_group to accomplish this? We don't use the functionality of DefaultGroup any longer, and I was planning to remove it entirely. Can instead inherit a Click class?

Copy link
Contributor

Choose a reason for hiding this comment

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

DefaultGroup inherits from click.Group. Can you try simply inheriting this class and see if this works?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can merge this as-is and attempt to replace DefaultGroup with click.Group in a separate PR.

@abdosi
Copy link
Contributor

abdosi commented Jun 3, 2020

@jleveque Please create PR for 201911. There are conflicts.

@jleveque
Copy link
Contributor

jleveque commented Jun 4, 2020

@abdosi: 201911-specific PR here: #933

jleveque added a commit that referenced this pull request Jun 8, 2020
Backport #893 to the 201911 branch to support abbreviation of `config` subcommands
abdosi pushed a commit to abdosi/sonic-utilities that referenced this pull request Aug 4, 2020
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.

config command does not accept abbreviation
4 participants