|
@@ -30,19 +30,29 @@ class Client():
|
|
|
|
|
|
def get_config():
|
|
def get_config():
|
|
# T-B-C...
|
|
# T-B-C...
|
|
- configs = ['lang', 'listStyle']
|
|
|
|
|
|
+ configs = ['lang', 'listStyle', 'DBType', 'DBPath']
|
|
# rl == 'r'eturn 'l'ist
|
|
# rl == 'r'eturn 'l'ist
|
|
rl = Stateful.matchTomlKeys("config.toml", configs)
|
|
rl = Stateful.matchTomlKeys("config.toml", configs)
|
|
|
|
|
|
- global lang, listStyle
|
|
|
|
|
|
+ global lang, listStyle, dbType, dbPath
|
|
lang = rl[0]
|
|
lang = rl[0]
|
|
listStyle = rl[1]
|
|
listStyle = rl[1]
|
|
|
|
+ dbType = rl[2]
|
|
|
|
+ dbPath = rl[3]
|
|
|
|
+
|
|
|
|
+ global commands
|
|
|
|
+ commands = []
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
def get_help():
|
|
def get_help():
|
|
print(Stateful.matchTomlKey("config.toml", lang, "command-help"))
|
|
print(Stateful.matchTomlKey("config.toml", lang, "command-help"))
|
|
|
|
|
|
|
|
|
|
|
|
+ def handleCommand():
|
|
|
|
+ pass
|
|
|
|
+
|
|
|
|
+
|
|
def start():
|
|
def start():
|
|
# 1. get config
|
|
# 1. get config
|
|
Client.get_config()
|
|
Client.get_config()
|