Skip to content

Commit a071f3e

Browse files
Merge pull request #1635 from allmightyspiff/textualize
Rich Text support
2 parents 4d7c618 + 80d7a41 commit a071f3e

File tree

298 files changed

+651
-375
lines changed

Some content is hidden

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

298 files changed

+651
-375
lines changed

SoftLayer/CLI/account/bandwidth_pools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# :license: MIT, see LICENSE for more details.
33
import click
44

5+
from SoftLayer.CLI.command import SLCommand as SLCommand
56
from SoftLayer.CLI import environment
67
from SoftLayer.CLI import formatting
78
from SoftLayer.managers.account import AccountManager as AccountManager
89
from SoftLayer import utils
910

1011

11-
@click.command()
12+
@click.command(cls=SLCommand, )
1213
@environment.pass_env
1314
def cli(env):
1415
"""Displays bandwidth pool information

SoftLayer/CLI/account/bandwidth_pools_detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import click
44

55
from SoftLayer import AccountManager
6+
from SoftLayer.CLI.command import SLCommand as SLCommand
67
from SoftLayer.CLI import environment
78
from SoftLayer.CLI import formatting
89
from SoftLayer import utils
910

1011

11-
@click.command()
12+
@click.command(cls=SLCommand)
1213
@click.argument('identifier')
1314
@environment.pass_env
1415
def cli(env, identifier):

SoftLayer/CLI/account/billing_items.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# :license: MIT, see LICENSE for more details.
33
import click
44

5+
from SoftLayer.CLI.command import SLCommand as SLCommand
56
from SoftLayer.CLI import environment
67
from SoftLayer.CLI import formatting
78
from SoftLayer.managers.account import AccountManager as AccountManager
89
from SoftLayer import utils
910

1011

11-
@click.command()
12+
@click.command(cls=SLCommand)
1213
@environment.pass_env
1314
def cli(env):
1415
"""Lists billing items with some other useful information.

SoftLayer/CLI/account/cancel_item.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# :license: MIT, see LICENSE for more details.
33
import click
44

5+
from SoftLayer.CLI.command import SLCommand as SLCommand
56
from SoftLayer.CLI import environment
67
from SoftLayer.managers.account import AccountManager as AccountManager
78

89

9-
@click.command()
10+
@click.command(cls=SLCommand)
1011
@click.argument('identifier')
1112
@environment.pass_env
1213
def cli(env, identifier):

SoftLayer/CLI/account/event_detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
import click
55

6+
from SoftLayer.CLI.command import SLCommand as SLCommand
67
from SoftLayer.CLI import environment
78
from SoftLayer.CLI import formatting
89
from SoftLayer.managers.account import AccountManager as AccountManager
910
from SoftLayer import utils
1011

1112

12-
@click.command()
13+
@click.command(cls=SLCommand)
1314
@click.argument('identifier')
1415
@click.option('--ack', is_flag=True, default=False,
1516
help="Acknowledge Event. Doing so will turn off the popup in the control portal")

SoftLayer/CLI/account/events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# :license: MIT, see LICENSE for more details.
33
import click
44

5+
from SoftLayer.CLI.command import SLCommand as SLCommand
56
from SoftLayer.CLI import environment
67
from SoftLayer.CLI import formatting
78
from SoftLayer.managers.account import AccountManager as AccountManager
89
from SoftLayer import utils
910

1011

11-
@click.command()
12+
@click.command(cls=SLCommand)
1213
@click.option('--ack-all', is_flag=True, default=False,
1314
help="Acknowledge every upcoming event. Doing so will turn off the popup in the control portal")
1415
@click.option('--planned', is_flag=True, default=False,

SoftLayer/CLI/account/invoice_detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
import click
55

6+
from SoftLayer.CLI.command import SLCommand as SLCommand
67
from SoftLayer.CLI import environment
78
from SoftLayer.CLI import formatting
89
from SoftLayer.managers.account import AccountManager as AccountManager
910
from SoftLayer import utils
1011

1112

12-
@click.command()
13+
@click.command(cls=SLCommand)
1314
@click.argument('identifier')
1415
@click.option('--details', is_flag=True, default=False, show_default=True,
1516
help="Shows a very detailed list of charges")

SoftLayer/CLI/account/invoices.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
import click
55

6+
from SoftLayer.CLI.command import SLCommand as SLCommand
67
from SoftLayer.CLI import environment
78
from SoftLayer.CLI import formatting
89
from SoftLayer.managers.account import AccountManager as AccountManager
910
from SoftLayer import utils
1011

1112

12-
@click.command()
13+
@click.command(cls=SLCommand)
1314
@click.option('--limit', default=50, show_default=True,
1415
help="How many invoices to get back.")
1516
@click.option('--closed', is_flag=True, default=False, show_default=True,

SoftLayer/CLI/account/item_detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# :license: MIT, see LICENSE for more details.
33
import click
44

5+
from SoftLayer.CLI.command import SLCommand as SLCommand
56
from SoftLayer.CLI import environment
67
from SoftLayer.CLI import formatting
78
from SoftLayer.managers.account import AccountManager as AccountManager
89
from SoftLayer import utils
910

1011

11-
@click.command()
12+
@click.command(cls=SLCommand)
1213
@click.argument('identifier')
1314
@environment.pass_env
1415
def cli(env, identifier):

SoftLayer/CLI/account/licenses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
from SoftLayer import utils
66

7+
from SoftLayer.CLI.command import SLCommand as SLCommand
78
from SoftLayer.CLI import environment
89
from SoftLayer.CLI import formatting
910
from SoftLayer.managers import account
1011

1112

12-
@click.command()
13+
@click.command(cls=SLCommand)
1314
@environment.pass_env
1415
def cli(env):
1516
"""Show all licenses."""

0 commit comments

Comments
 (0)