Introduce new command definition tree #259

Merged
meggert merged 54 commits from bump-tmtccmd into v6.0.0-dev 2024-01-25 09:43:49 +01:00
57 changed files with 1574 additions and 1699 deletions
Showing only changes of commit d2fc53c1fa - Show all commits

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ log
/gps_log.txt /gps_log.txt
/config/*.json /config/*.json
/.tmtc-history.txt
/scex_conf.json /scex_conf.json
/tmtc_conf.json /tmtc_conf.json
/seqcnt*.txt /seqcnt*.txt

View File

@ -1,8 +1,10 @@
from typing import Optional from typing import Optional
from prompt_toolkit.history import FileHistory
from tmtccmd import CcsdsTmtcBackend, HookBase from tmtccmd import CcsdsTmtcBackend, HookBase
from tmtccmd.com import ComInterface from tmtccmd.com import ComInterface
from tmtccmd.config import CmdTreeNode from tmtccmd.config import CmdTreeNode
from tmtccmd.config.hook import History
from tmtccmd.util import ObjectIdDictT, RetvalDictT from tmtccmd.util import ObjectIdDictT, RetvalDictT
from eive_tmtc.config.definitions import SPACE_PACKET_IDS from eive_tmtc.config.definitions import SPACE_PACKET_IDS
@ -168,3 +170,6 @@ class EiveHookObject(HookBase):
def get_retval_dict(self) -> RetvalDictT: def get_retval_dict(self) -> RetvalDictT:
return get_retval_dict() return get_retval_dict()
def get_cmd_history(self) -> Optional[History]:
return FileHistory(".tmtc-history.txt")