summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-06 13:19:26 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-11 09:14:27 +0100
commita219bc7ff729516aea7ddea8516b50d96e7d9363 (patch)
treecad91b8861fe8b6b31cdfac8e87444ed93e0607a /cli/cli.py
parent3d0aff3d1d47a053a678ecbec69d585cf1bbb275 (diff)
ogcli: move configuration data into a different file
Move the configuration into its own file so it is easier to access from multiple files.
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/cli.py b/cli/cli.py
index 2a47ece..11d1521 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -20,6 +20,7 @@ from cli.objects.center import OgCenter
from cli.objects.room import OgRoom
from cli.objects.folder import OgFolder
from cli.objects.session import OgSession
+from config import cfg
import argparse
import requests
import sys
@@ -77,7 +78,7 @@ class OgREST():
class OgCLI():
- def __init__(self, cfg):
+ def __init__(self):
self.rest = OgREST(cfg['ip'], cfg['port'], cfg['api_token'])
def list(self, args):