From be18d619e69755ee836175d414dada7b6b3cf13e Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Fri, 19 Jun 2020 13:10:14 +0200 Subject: Add list scopes command This is consistent with HTTP GET /scopes --- ogcli/objects/og_scopes.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ogcli/objects/og_scopes.py (limited to 'ogcli/objects') diff --git a/ogcli/objects/og_scopes.py b/ogcli/objects/og_scopes.py new file mode 100644 index 0000000..0bf3ca8 --- /dev/null +++ b/ogcli/objects/og_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