1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import kbc_alt
- import kbc_toml
- import kbc_sqlite
- import kbc_llm
- import datetime
- # class config def read(), reload()
- class kbc_controller():
- def get_app_config(returnDict:bool=True):
- tomls = kbc_toml.MatchTomlTable("dev.toml", "app_config", "dict")
- global app_config
- app_config = tomls["app_config"]
- if returnDict == True:
- return app_config
-
- def get_help():
- pass
-
- def rewrite_config():
- pass
- # [todo 4]
- def display_in_timezone():
- pass
-
- # [todo 2]
- # 前端只检查输入数量正确, 内容正确统一代回后端检查
- def validCheck():
- pass
- def makeLog():
- pass
- def transitCommand():
- # do while or for (1)
- while(1):
- app_commands = input(currentPath + "/: ", ).split(" ")
- # Input exception check
-
- # [todo 1]
- # Controller.InputCheck(app_commands)
- # [todo 4]
- def start():
- pass
- # 2. Valid DB
- # startState = Stateful.Translator(['/', app_config["dbPath"], app_config["dbType"]])
- # print(startState)
- # kbc_controller.TransitCommand()
- if __name__ == "__main__":
- kbc_controller.start()
|