Skip to content

Commit 8864b27

Browse files
committed
Remove useless options for install/uninstall commands
1 parent 54ba07d commit 8864b27

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

src/cloudai/cli/cli.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -128,30 +128,18 @@ def main(log_file, log_level):
128128

129129
@main.command()
130130
@common_options
131-
@output_dir_opt
132-
def install(system_cfg: Path, tests_dir: Path, scenario_cfg: Path, output_dir: Path):
131+
def install(system_cfg: Path, tests_dir: Path, scenario_cfg: Path):
133132
"""Install the necessary components for workloads."""
134-
args = argparse.Namespace(
135-
system_config=system_cfg,
136-
tests_dir=tests_dir,
137-
test_scenario=scenario_cfg,
138-
output_dir=output_dir,
139-
mode="install",
140-
)
133+
args = argparse.Namespace(system_config=system_cfg, tests_dir=tests_dir, test_scenario=scenario_cfg, mode="install")
141134
exit(handle_install_and_uninstall(args))
142135

143136

144137
@main.command()
145138
@common_options
146-
@output_dir_opt
147-
def uninstall(system_cfg: Path, tests_dir: Path, scenario_cfg: Path, output_dir: Path):
139+
def uninstall(system_cfg: Path, tests_dir: Path, scenario_cfg: Path):
148140
"""Uninstall the components used by workloads."""
149141
args = argparse.Namespace(
150-
system_config=system_cfg,
151-
tests_dir=tests_dir,
152-
test_scenario=scenario_cfg,
153-
output_dir=output_dir,
154-
mode="uninstall",
142+
system_config=system_cfg, tests_dir=tests_dir, test_scenario=scenario_cfg, mode="uninstall"
155143
)
156144
exit(handle_install_and_uninstall(args))
157145

src/cloudai/cli/handlers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ def handle_install_and_uninstall(args: argparse.Namespace) -> int:
5959
parser = Parser(args.system_config)
6060
system, tests, scenario = parser.parse(args.tests_dir, args.test_scenario)
6161

62-
if args.output_dir:
63-
system.output_path = args.output_dir.absolute()
6462
system.update()
6563
logging.info(f"System Name: {system.name}")
6664
logging.info(f"Scheduler: {system.scheduler}")

0 commit comments

Comments
 (0)