feat(xen-api/cli): add proxy support
This commit is contained in:
parent
bbf3dae37f
commit
4fb34ffee9
@ -36,7 +36,7 @@
|
||||
|
||||
- @vates/cached-dns.lookup major
|
||||
- @vates/event-listeners-manager major
|
||||
- xen-api patch
|
||||
- xen-api minor
|
||||
- xo-vmdk-to-vhd minor
|
||||
- @xen-orchestra/proxy patch
|
||||
- xo-server minor
|
||||
|
@ -44,13 +44,14 @@ const usage = 'Usage: xen-api <url> [<user> [<password>]]'
|
||||
|
||||
async function main(createClient) {
|
||||
const opts = minimist(process.argv.slice(2), {
|
||||
string: ['session-id'],
|
||||
string: ['proxy', 'session-id'],
|
||||
boolean: ['allow-unauthorized', 'help', 'read-only', 'verbose'],
|
||||
|
||||
alias: {
|
||||
'allow-unauthorized': 'au',
|
||||
debounce: 'd',
|
||||
help: 'h',
|
||||
proxy: 'p',
|
||||
'read-only': 'ro',
|
||||
verbose: 'v',
|
||||
},
|
||||
@ -87,6 +88,7 @@ async function main(createClient) {
|
||||
allowUnauthorized: opts.au,
|
||||
auth,
|
||||
debounce: opts.debounce != null ? +opts.debounce : null,
|
||||
httpProxy: opts.proxy,
|
||||
readOnly: opts.ro,
|
||||
syncStackTraces: true,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user