Skip to content
Permalink
Browse files

cli: introduce http and https proxy options

Add to _PROVIDER_OPTIONS as they are specific to supported
providers: "host", "lxd", "mamaged-host", "multipass".

Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
  • Loading branch information
cjp256 authored and sergiusens committed Nov 12, 2019
1 parent b1221f2 commit 31efcb19bff6a30379da5deaae41b7dbcc8ad1ab
Showing with 14 additions and 0 deletions.
  1. +14 −0 snapcraft/cli/_options.py
@@ -93,6 +93,20 @@ def prompt_for_value(self, ctx):
type=click.Choice(_ALL_PROVIDERS),
supported_providers=_ALL_PROVIDERS,
),
dict(
param_decls="--http-proxy",
metavar="<http-proxy>",
help="HTTP proxy for host build environments.",
envvar="http_proxy",
supported_providers=["host", "lxd", "managed-host", "multipass"],
),
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"],
),
]


0 comments on commit 31efcb1

Please sign in to comment.
You can’t perform that action at this time.