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

_options.py: use short form variables for listing providers #4099

Merged
merged 1 commit into from
Apr 14, 2023
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
30 changes: 15 additions & 15 deletions snapcraft_legacy/cli/_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,32 @@ def __repr__(self):
param_decls=["--target-arch"],
metavar="<arch>",
help="Target architecture to cross compile to",
supported_providers=["host", "lxd", "multipass"],
supported_providers=_SUPPORTED_PROVIDERS,
),
dict(
param_decls=["--debug"],
is_flag=True,
help="Shells into the environment if the build fails.",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--shell"],
is_flag=True,
help="Shells into the environment in lieu of the step to run.",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--offline"],
is_flag=True,
help="Operate in offline mode.",
envvar="SNAPCRAFT_OFFLINE",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--shell-after"],
is_flag=True,
help="Shells into the environment after the step has run.",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--destructive-mode"],
Expand Down Expand Up @@ -128,14 +128,14 @@ def __repr__(self):
metavar="<http-proxy>",
help="HTTP proxy for host build environments.",
envvar="http_proxy",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--https-proxy"],
metavar="<https-proxy>",
help="HTTPS proxy for host build environments.",
envvar="https_proxy",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--add-ca-certificates"],
Expand All @@ -159,7 +159,7 @@ def __repr__(self):
is_flag=True,
help="Enable developer debug logging.",
envvar="SNAPCRAFT_ENABLE_DEVELOPER_DEBUG",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
hidden=True,
),
dict(
Expand All @@ -168,50 +168,50 @@ def __repr__(self):
type=BoolParamType(),
help="Generate snap manifest.",
envvar="SNAPCRAFT_BUILD_INFO",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
hidden=True,
),
dict(
param_decls=["--manifest-image-information"],
metavar="<json string>",
help="Set snap manifest image-info",
envvar="SNAPCRAFT_IMAGE_INFO",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
hidden=True,
),
dict(
param_decls=["--enable-experimental-extensions"],
is_flag=True,
help="Enable extensions that are experimental and not considered stable.",
envvar="SNAPCRAFT_ENABLE_EXPERIMENTAL_EXTENSIONS",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--enable-experimental-target-arch"],
is_flag=True,
help="Enable experimental `--target-arch` support for core20.",
envvar="SNAPCRAFT_ENABLE_EXPERIMENTAL_TARGET_ARCH",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--ua-token"],
metavar="<ua-token>",
help="Configure build environment with ESM using specified UA token.",
envvar="SNAPCRAFT_UA_TOKEN",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--enable-experimental-ua-services"],
is_flag=True,
help="Allow selection of UA services to enable.",
envvar="SNAPCRAFT_ENABLE_EXPERIMENTAL_UA_SERVICES",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls=["--verbose", "-v"],
is_flag=True,
help="Show debug information and be more verbose.",
supported_providers=["host", "lxd", "managed-host", "multipass"],
supported_providers=_ALL_PROVIDERS,
),
]

Expand Down