aaz-dev-tools icon indicating copy to clipboard operation
aaz-dev-tools copied to clipboard

Drop tree.json

Open ReaNAiveD opened this issue 1 year ago • 0 comments

Description The tree.json file is growing bigger and will cause problem for git command one day. So it is required to drop tree.json file in git repo and generate it only in local cache.

Backend

  • Add a new class CMDSpecsPartialCommandTree to support partial commands and command groups management.
  • Through overwriting the __getitem__ method of CMDSpecsCommandDict and CMDSpecsCommandGroupDict, support similar interface of PartialCommandTree and a full CommandTree.
  • Make versions of CLISpecsCommand optional to clarify whether it is a partial command.
  • Change export_level of command_groups and commands in CMDSpecsCommand to NOT_NONE to clarify whether it is a partial command group or a command group without child.

Frontend

  • Rewrite the CLIModGeneratorProfileCommandTree. Change it from class component to function component.
  • Support dynamic load of command tree node in ModGenerator.
  • Add new property selected to ProfileCTCommand and ProfileCTCommandGroup to mark selection state no matter it is loaded or not.
  • Change ProfileCommandTree to object instead of list.

ReaNAiveD avatar Sep 27 '24 09:09 ReaNAiveD