Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgard Marx committed Apr 22, 2024
1 parent aea6bcd commit 4d552ec
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions imr/imr_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ def cli(ctx: click.Context) -> None:


@cli.group()
@click.option(
"-c", "--config", type=str, help="name of the configuration."
)
@click.option("-c", "--config", type=str, help="name of the configuration.")
@click.pass_obj
def local(obj: Context, config: str) -> None:
"""Get local command options."""
Expand Down Expand Up @@ -71,27 +69,20 @@ def path_local(obj: Context, package: str, version: str) -> None:


@cli.group()
@click.option(
"-h", "--host", type=str, help="Server host address ie. http://mymodelhost.me."
)
@click.option(
"-u", "--user", type=str, help="Server host user."
)
@click.option(
"-p", "--password", type=str, help="Server host password."
)
@click.option(
"-c", "--config", type=str, help="Remote configuration."
)
@click.option("-h", "--host", type=str, help="Server host address ie. http://mymodelhost.me.")
@click.option("-u", "--user", type=str, help="Server host user.")
@click.option("-p", "--password", type=str, help="Server host password.")
@click.option("-c", "--config", type=str, help="Remote configuration.")
@click.pass_obj
def remote(obj: Context, host: str, user: str, password: str, config: str) -> None:
"""Get remote command cli options."""
if host is not None:
obj.imr_remote = IMRRemote(host, user, password)
else:
config_params = load_config(config)
obj.imr_remote = IMRRemote(config_params["host"], config_params["user"],
config_params["password"])
obj.imr_remote = IMRRemote(
config_params["host"], config_params["user"], config_params["password"]
)


@remote.command("list")
Expand Down

0 comments on commit 4d552ec

Please sign in to comment.