Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions SoftLayer/CLI/call_api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""Call arbitrary API endpoints."""
import json

import click

import json

from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting

Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/cdn/detail.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Detail a CDN Account."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting

import click


@click.command()
@click.argument('account_id')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/cdn/list.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""List CDN Accounts."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting

import click


@click.command()
@click.option('--sortby',
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/cdn/load.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Cache one or more files on all edge nodes."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment

import click


@click.command()
@click.argument('account_id')
Expand Down
3 changes: 2 additions & 1 deletion SoftLayer/CLI/cdn/origin_add.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Create an origin pull mapping."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment

import click
# pylint: disable=redefined-builtin


Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/cdn/origin_list.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""List origin pull mappings."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting

import click


@click.command()
@click.argument('account_id')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/cdn/origin_remove.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Remove an origin pull mapping."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment

import click


@click.command()
@click.argument('account_id')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/cdn/purge.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Purge cached files from all edge nodes."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment

import click


@click.command()
@click.argument('account_id')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/config/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# :license: MIT, see LICENSE for more details.
import os.path

import click

import SoftLayer
from SoftLayer import auth
from SoftLayer.CLI import config
Expand All @@ -10,8 +12,6 @@
from SoftLayer.CLI import formatting
from SoftLayer import utils

import click


def get_api_key(client, username, secret):
"""Attempts API-Key and password auth to get an API key.
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/config/show.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Show current CLI configuration."""
# :license: MIT, see LICENSE for more details.

import click

from SoftLayer.CLI import config
from SoftLayer.CLI import environment

import click


@click.command()
@environment.pass_env
Expand Down
3 changes: 2 additions & 1 deletion SoftLayer/CLI/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
import sys
import types

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import formatting

import click
# pylint: disable=too-many-public-methods, broad-except, unused-argument
# pylint: disable=redefined-builtin, super-init-not-called

Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/record_add.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Add resource record."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import helpers

import click
# pylint: disable=redefined-builtin


Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/record_edit.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Update DNS record."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import helpers

import click
# pylint: disable=redefined-builtin


Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/record_list.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""List all records in a zone."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
from SoftLayer.CLI import helpers

import click
# pylint: disable=redefined-builtin


Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/record_remove.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Remove resource record."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import formatting

import click


@click.command()
@click.argument('record_id')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/zone_create.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Create a zone."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment

import click


@click.command()
@click.argument('zone')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/zone_delete.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"""Delete zone."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import formatting
from SoftLayer.CLI import helpers

import click


@click.command()
@click.argument('zone')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/zone_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# :license: MIT, see LICENSE for more details.
import re

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import helpers

import click

RECORD_REGEX = re.compile(r"""^((?P<domain>([\w-]+(\.)?)*|\@)?\s+
(?P<ttl>\d+)?\s+
(?P<class>\w+)?)?\s+
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/zone_list.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""List all zones."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting

import click


@click.command()
@environment.pass_env
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/dns/zone_print.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Print zone in BIND format."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import helpers

import click


@click.command()
@click.argument('zone')
Expand Down
6 changes: 3 additions & 3 deletions SoftLayer/CLI/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"""
import importlib

from SoftLayer.CLI import formatting
from SoftLayer.CLI import routes

import click
import pkg_resources

from SoftLayer.CLI import formatting
from SoftLayer.CLI import routes

# pylint: disable=too-many-instance-attributes, invalid-name, no-self-use

# Calling pkg_resources.iter_entry_points shows a false-positive
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/firewall/add.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Create new firewall."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import formatting

import click


@click.command()
@click.argument('target')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/firewall/cancel.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"""Cancels a firewall."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import firewall
from SoftLayer.CLI import formatting

import click


@click.command()
@click.argument('identifier')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/firewall/detail.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Detail firewall."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import firewall
from SoftLayer.CLI import formatting

import click


@click.command()
@click.argument('identifier')
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/firewall/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import subprocess
import tempfile

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import firewall
from SoftLayer.CLI import formatting

import click

DELIMITER = "=========================================\n"


Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/firewall/list.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""List firewalls."""
# :license: MIT, see LICENSE for more details.

import click

import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
from SoftLayer import utils

import click


@click.command()
@environment.pass_env
Expand Down
Loading