Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env var CIRCUP_WEBWORKFLOW_PASSWORD #217

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion circup/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
help="Hostname or IP address of a device. Overrides automatic path detection.",
)
@click.option(
"--password", help="Password to use for authentication when --host is used."
"--password",
help="Password to use for authentication when --host is used."
" You can optionally set an environment variable CIRCUP_WEBWORKFLOW_PASSWORD"
" instead of passing this argument. If both exist the CLI arg takes precedent.",
)
@click.option(
"--timeout",
Expand Down Expand Up @@ -90,6 +93,10 @@ def main( # pylint: disable=too-many-locals
# pylint: disable=too-many-arguments,too-many-branches,too-many-statements,too-many-locals
ctx.ensure_object(dict)
ctx.obj["TIMEOUT"] = timeout

if password is None:
password = os.getenv("CIRCUP_WEBWORKFLOW_PASSWORD")

device_path = get_device_path(host, password, path)

using_webworkflow = "host" in ctx.params.keys() and ctx.params["host"] is not None
Expand Down
Loading