Skip to content

Make config command support abbreviation#893

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
qiluo-msft:qiluo/abb
Apr 29, 2020
Merged

Make config command support abbreviation#893
qiluo-msft merged 1 commit intosonic-net:masterfrom
qiluo-msft:qiluo/abb

Conversation

@qiluo-msft
Copy link
Copy Markdown
Contributor

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

Fix #532

@qiluo-msft qiluo-msft requested a review from jleveque April 29, 2020 16:01
from swsssdk import ConfigDBConnector
from swsssdk import SonicV2Connector
from minigraph import parse_device_desc_xml
from click_default_group import DefaultGroup
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

abdosi commented Jun 3, 2020

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

@jleveque
Copy link
Copy Markdown
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