summaryrefslogtreecommitdiffstats
path: root/ogcli/objects
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-06-30 12:43:51 +0200
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-06-30 12:43:51 +0200
commitf41b5f8f9dd5672864b2dfe995e73f259741fa8b (patch)
tree8f1943d49dce79d6c0f4c106714b3ec6fb8a5320 /ogcli/objects
parent7483cb76a22abcd53562e1f44c9a55aba6b6d363 (diff)
Add list modes command
This is consistent with HTTP GET /modes
Diffstat (limited to 'ogcli/objects')
-rw-r--r--ogcli/objects/modes.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcli/objects/modes.py b/ogcli/objects/modes.py
new file mode 100644
index 0000000..bf175d6
--- /dev/null
+++ b/ogcli/objects/modes.py
@@ -0,0 +1,6 @@
+class OgModes():
+
+ @staticmethod
+ def list_available_modes(rest):
+ r = rest.get('/modes')
+ print(r.json())