|
@@ -11,17 +11,18 @@ class Client():
|
|
|
|
|
|
rl = Stateful.MatchTomlKeys("dev_config.toml", configs)
|
|
|
|
|
|
- global lang, listStyle, dbType, dbPath
|
|
|
+ global lang, listStyle, dbType, dbPath, displayTimeZone, currentPath
|
|
|
dbType = rl[0]
|
|
|
dbPath = rl[1]
|
|
|
lang = rl[2]
|
|
|
listStyle = rl[3]
|
|
|
displayTimeZone = rl[4]
|
|
|
+ currentPath = ""
|
|
|
|
|
|
|
|
|
|
|
|
def get_help():
|
|
|
- print(Stateful.matchTomlKey("clean_config.toml", lang, "command-help"))
|
|
|
+ print(Stateful.MatchTomlKey("clean_config.toml", lang, "command-help"))
|
|
|
|
|
|
|
|
|
|
|
@@ -30,7 +31,7 @@ class Client():
|
|
|
return(dt_now_UTC0)
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
def InputCheck(inputs):
|
|
|
pass
|
|
@@ -45,29 +46,24 @@ class Client():
|
|
|
|
|
|
|
|
|
if len(app_commands) < 5:
|
|
|
-
|
|
|
+
|
|
|
+ app_commands.append(currentPath)
|
|
|
app_commands.append(dbPath)
|
|
|
app_commands.append(dbType)
|
|
|
- Stateful.PackHandler(app_commands)
|
|
|
+
|
|
|
+ Stateful.Handler(app_commands)
|
|
|
|
|
|
elif len(app_commands) >= 5:
|
|
|
- print(">5 error")
|
|
|
- break
|
|
|
+ print("app_commands >5 error")
|
|
|
+
|
|
|
|
|
|
|
|
|
def start():
|
|
|
|
|
|
Client.get_config()
|
|
|
|
|
|
- global currentPath
|
|
|
- currentPath = " "
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- startState = Stateful.PackHandler(['/', dbPath, dbType])
|
|
|
+
|
|
|
+ startState = Stateful.Handler(['/', dbPath, dbType])
|
|
|
print(startState)
|
|
|
Client.TransitCommand()
|
|
|
|