Add custom command classes · openstack/python-openstackclient@3cd544d · GitHub
Skip to content

Commit 3cd544d

Browse files
committed
Add custom command classes
These are effectively identical to the osc-lib variants except they include the attributes that the OSC shell implementation will set on this during shell init. This helps from a typing perspective. Change-Id: I53d9058273748ecd4d4eecec5f7291d5f38ce5ab Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 3fbe41c commit 3cd544d

134 files changed

Lines changed: 167 additions & 141 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

openstackclient/command.py

Lines changed: 27 additions & 0 deletions

openstackclient/common/availability_zone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import logging
1818

1919
from openstack import exceptions as sdk_exceptions
20-
from osc_lib.command import command
2120
from osc_lib import utils
2221

22+
from openstackclient import command
2323
from openstackclient.i18n import _
2424

2525

openstackclient/common/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"""Configuration action implementations"""
1515

1616
from keystoneauth1.loading import base
17-
from osc_lib.command import command
1817

18+
from openstackclient import command
1919
from openstackclient.i18n import _
2020

2121
REDACTED = "<redacted>"

openstackclient/common/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
import logging
1919

20-
from osc_lib.command import command
2120
from osc_lib import utils
2221

22+
from openstackclient import command
2323
from openstackclient.i18n import _
2424

2525
LOG = logging.getLogger(__name__)

openstackclient/common/limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
import itertools
1919

20-
from osc_lib.command import command
2120
from osc_lib import utils
2221

22+
from openstackclient import command
2323
from openstackclient.i18n import _
2424
from openstackclient.identity import common as identity_common
2525

openstackclient/common/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
import sys
1919

20-
from osc_lib.command import command
2120
from osc_lib import utils
2221

22+
from openstackclient import command
2323
from openstackclient.i18n import _
2424

2525

openstackclient/common/project_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import typing as ty
2121

2222
from cliff.formatters import table
23-
from osc_lib.command import command
2423

24+
from openstackclient import command
2525
from openstackclient.i18n import _
2626
from openstackclient.identity import common as identity_common
2727

openstackclient/common/quota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
import typing as ty
2222

2323
from openstack import exceptions as sdk_exceptions
24-
from osc_lib.command import command
2524
from osc_lib import exceptions
2625
from osc_lib import utils
2726

27+
from openstackclient import command
2828
from openstackclient.i18n import _
2929
from openstackclient.network import common
3030

openstackclient/common/versions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
"""Versions Action Implementation"""
1616

17-
from osc_lib.command import command
18-
17+
from openstackclient import command
1918
from openstackclient.i18n import _
2019

2120

openstackclient/compute/v2/agent.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)