diff options
author | Ruomei Yan <ruomei.yan@arm.com> | 2022-11-02 16:47:56 +0000 |
---|---|---|
committer | Ruomei Yan <ruomei.yan@arm.com> | 2022-11-15 13:02:56 +0000 |
commit | 47fc50576e7040680c19e152592b2c5e5cc297f5 (patch) | |
tree | f10fc331e7bc7358c7da8cf3582d9428db4e7367 /src/mlia/cli/common.py | |
parent | ef73bb773df214f3f33f8e4ca7d276041106cad2 (diff) | |
download | mlia-47fc50576e7040680c19e152592b2c5e5cc297f5.tar.gz |
MLIA-649 Strip mlia backend management into a new command
* add entry point for mlia-backend in setup.cfg and main.py
* add --force option for install from path: uninstall existing backend
in ML Inference Advisor and install from given path
* add uninstall and list program parameters: uninstall has
backend_name as input arg, install has backend_name as a mandatory argument
* add unit tests in test_cli_commands.py, test_cli_main.py,
test_tools_metadata_common.py, test_tools_metadata_corstone.py
* updated README.md
* remove --download option for installing backend
* add new lines for the display section when we do mlia-backen list
* add case insensitive support for backend names in command line argument
Change-Id: Icb89d8957fa6be4b767710e24fa074f26472674b
Diffstat (limited to 'src/mlia/cli/common.py')
-rw-r--r-- | src/mlia/cli/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mlia/cli/common.py b/src/mlia/cli/common.py index 3f60668..077f456 100644 --- a/src/mlia/cli/common.py +++ b/src/mlia/cli/common.py @@ -16,11 +16,12 @@ class CommandInfo: aliases: list[str] opt_groups: list[Callable[[argparse.ArgumentParser], None]] is_default: bool = False + name: str | None = None @property def command_name(self) -> str: """Return command name.""" - return self.func.__name__ + return self.name or self.func.__name__ @property def command_name_and_aliases(self) -> list[str]: |