From dbf0f00650200b8b4817274953f2e0b684bd622d Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Tue, 30 Jun 2020 12:51:51 +0200 Subject: Rename files to remove 'og' prefix This prefix is redundant on almost every file, so the prefix is removed from filenames and imports. --- cli/objects/__init__.py | 0 cli/objects/client.py | 6 ++++++ cli/objects/modes.py | 6 ++++++ cli/objects/scopes.py | 6 ++++++ 4 files changed, 18 insertions(+) create mode 100644 cli/objects/__init__.py create mode 100644 cli/objects/client.py create mode 100644 cli/objects/modes.py create mode 100644 cli/objects/scopes.py (limited to 'cli/objects') diff --git a/cli/objects/__init__.py b/cli/objects/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/cli/objects/client.py b/cli/objects/client.py new file mode 100644 index 0000000..ca91036 --- /dev/null +++ b/cli/objects/client.py @@ -0,0 +1,6 @@ +class OgClient(): + + @staticmethod + def list_clients(rest): + r = rest.get('/clients') + print(r.json()) diff --git a/cli/objects/modes.py b/cli/objects/modes.py new file mode 100644 index 0000000..bf175d6 --- /dev/null +++ b/cli/objects/modes.py @@ -0,0 +1,6 @@ +class OgModes(): + + @staticmethod + def list_available_modes(rest): + r = rest.get('/modes') + print(r.json()) diff --git a/cli/objects/scopes.py b/cli/objects/scopes.py new file mode 100644 index 0000000..0bf3ca8 --- /dev/null +++ b/cli/objects/scopes.py @@ -0,0 +1,6 @@ +class OgScope(): + + @staticmethod + def list_scopes(rest): + r = rest.get('/scopes') + print(r.json()) -- cgit v1.2.3-18-g5258