mirror of
https://github.com/xodio/xod.git
synced 2026-03-19 23:26:57 +01:00
63 lines
1.3 KiB
JavaScript
63 lines
1.3 KiB
JavaScript
import { flags } from '@oclif/command';
|
|
|
|
export const help = flags.help({
|
|
char: 'h',
|
|
});
|
|
|
|
export const version = flags.version({
|
|
char: 'V',
|
|
});
|
|
|
|
export const api = flags.string({
|
|
description: 'XOD API hostname',
|
|
env: 'XOD_API',
|
|
default: 'xod.io',
|
|
helpValue: 'hostname',
|
|
});
|
|
|
|
export const board = flags.string({
|
|
char: 'b',
|
|
description: 'target board identifier (see `xodc boards` output)',
|
|
env: 'XOD_BOARD',
|
|
required: true,
|
|
helpValue: 'fqbn',
|
|
});
|
|
|
|
export const debug = flags.boolean({
|
|
description: 'enable debug traces',
|
|
env: 'XOD_DEBUG',
|
|
default: false,
|
|
});
|
|
|
|
export const onBehalf = flags.string({
|
|
description: 'publish on behalf of the username',
|
|
env: 'XOD_ONBEHALF',
|
|
helpValue: 'username',
|
|
});
|
|
|
|
export const password = flags.string({
|
|
description: 'XOD API password',
|
|
env: 'XOD_PASSWORD',
|
|
helpValue: 'password',
|
|
});
|
|
|
|
export const quiet = flags.boolean({
|
|
char: 'q',
|
|
description: 'do not log messages other than errors',
|
|
default: false,
|
|
});
|
|
|
|
export const username = flags.string({
|
|
description: 'XOD API username',
|
|
env: 'XOD_USERNAME',
|
|
helpValue: 'username',
|
|
});
|
|
|
|
export const workspace = flags.string({
|
|
char: 'w',
|
|
description: 'use the workspace specified, defaults to $HOME/xod',
|
|
env: 'XOD_WORKSPACE',
|
|
helpValue: 'path',
|
|
default: '~/xod',
|
|
});
|