mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Stop manually inserting help
flag per command since oclif includes it automatically
Change-type: patch
This commit is contained in:
parent
5716ba29ad
commit
e10d7816a9
@ -339,8 +339,6 @@ Examples:
|
|||||||
|
|
||||||
the API key name
|
the API key name
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## api-key revoke
|
## api-key revoke
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -361,8 +359,6 @@ Examples:
|
|||||||
|
|
||||||
the API key ids
|
the API key ids
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## api-keys
|
## api-keys
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -1266,8 +1262,6 @@ Examples:
|
|||||||
|
|
||||||
the uuid of the device to identify
|
the uuid of the device to identify
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## device
|
## device
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -1568,8 +1562,6 @@ the uuid of the device to pin to a release
|
|||||||
|
|
||||||
the commit of the release for the device to get pinned to
|
the commit of the release for the device to get pinned to
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## device public-url
|
## device public-url
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -1626,8 +1618,6 @@ Examples:
|
|||||||
|
|
||||||
comma-separated list (no blank spaces) of device UUIDs
|
comma-separated list (no blank spaces) of device UUIDs
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## device reboot
|
## device reboot
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -1714,8 +1704,6 @@ the uuid of the device to rename
|
|||||||
|
|
||||||
the new name for the device
|
the new name for the device
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## device restart
|
## device restart
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -1821,8 +1809,6 @@ comma-separated list (no blank spaces) of device UUIDs
|
|||||||
|
|
||||||
comma-separated list (no blank spaces) of service names
|
comma-separated list (no blank spaces) of service names
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## device stop-service
|
## device stop-service
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -1847,8 +1833,6 @@ comma-separated list (no blank spaces) of device UUIDs
|
|||||||
|
|
||||||
comma-separated list (no blank spaces) of service names
|
comma-separated list (no blank spaces) of service names
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## device track-fleet
|
## device track-fleet
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -1865,8 +1849,6 @@ Examples:
|
|||||||
|
|
||||||
the uuid of the device to make track the fleet's release
|
the uuid of the device to make track the fleet's release
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## devices supported
|
## devices supported
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -2286,8 +2268,6 @@ the slug of the fleet to pin to a release
|
|||||||
|
|
||||||
the commit of the release for the fleet to get pinned to
|
the commit of the release for the fleet to get pinned to
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## fleet purge
|
## fleet purge
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -2316,8 +2296,6 @@ Examples:
|
|||||||
|
|
||||||
fleet name or slug (preferred)
|
fleet name or slug (preferred)
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## fleet rename
|
## fleet rename
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -2353,8 +2331,6 @@ fleet name or slug (preferred)
|
|||||||
|
|
||||||
the new name for the fleet
|
the new name for the fleet
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## fleet restart
|
## fleet restart
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -2382,8 +2358,6 @@ Examples:
|
|||||||
|
|
||||||
fleet name or slug (preferred)
|
fleet name or slug (preferred)
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## fleet rm
|
## fleet rm
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -2437,8 +2411,6 @@ Examples:
|
|||||||
|
|
||||||
the slug of the fleet to make track the latest release
|
the slug of the fleet to make track the latest release
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## fleets
|
## fleets
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -2477,8 +2449,6 @@ Examples:
|
|||||||
|
|
||||||
path of drive or image to configure
|
path of drive or image to configure
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## local flash
|
## local flash
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -2769,8 +2739,6 @@ Examples:
|
|||||||
|
|
||||||
$ balena orgs
|
$ balena orgs
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
|
|
||||||
## os build-config
|
## os build-config
|
||||||
@ -3141,8 +3109,6 @@ Examples:
|
|||||||
|
|
||||||
the device IP or hostname
|
the device IP or hostname
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
# Preload
|
# Preload
|
||||||
|
|
||||||
## preload
|
## preload
|
||||||
@ -3510,8 +3476,6 @@ Examples:
|
|||||||
|
|
||||||
the commit or ID of the release to finalize
|
the commit or ID of the release to finalize
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## release
|
## release
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -3565,8 +3529,6 @@ Examples:
|
|||||||
|
|
||||||
the commit or ID of the release to invalidate
|
the commit or ID of the release to invalidate
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## release validate
|
## release validate
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -3587,8 +3549,6 @@ Examples:
|
|||||||
|
|
||||||
the commit or ID of the release to validate
|
the commit or ID of the release to validate
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## releases
|
## releases
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -3639,8 +3599,6 @@ Examples:
|
|||||||
|
|
||||||
$ balena settings
|
$ balena settings
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
# SSH Keys
|
# SSH Keys
|
||||||
|
|
||||||
## key add
|
## key add
|
||||||
@ -3682,8 +3640,6 @@ the SSH key name
|
|||||||
|
|
||||||
the path to the public key file
|
the path to the public key file
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## key
|
## key
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -3700,8 +3656,6 @@ Examples:
|
|||||||
|
|
||||||
balenaCloud ID for the SSH key
|
balenaCloud ID for the SSH key
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
## key rm
|
## key rm
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
@ -3737,8 +3691,6 @@ Examples:
|
|||||||
|
|
||||||
$ balena keys
|
$ balena keys
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
# Support
|
# Support
|
||||||
|
|
||||||
## support
|
## support
|
||||||
@ -3939,8 +3891,6 @@ release id
|
|||||||
List available drives which are usable for writing an OS image to.
|
List available drives which are usable for writing an OS image to.
|
||||||
Does not list system drives.
|
Does not list system drives.
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
|
|
||||||
## version
|
## version
|
||||||
|
@ -103,7 +103,8 @@
|
|||||||
"command_not_found": "./build/hooks/command-not-found/suggest"
|
"command_not_found": "./build/hooks/command-not-found/suggest"
|
||||||
},
|
},
|
||||||
"additionalHelpFlags": [
|
"additionalHelpFlags": [
|
||||||
"help"
|
"help",
|
||||||
|
"-h"
|
||||||
],
|
],
|
||||||
"macos": {
|
"macos": {
|
||||||
"identifier": "io.balena.cli",
|
"identifier": "io.balena.cli",
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import { ExpectedError } from '../../errors';
|
import { ExpectedError } from '../../errors';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class GenerateCmd extends Command {
|
export default class GenerateCmd extends Command {
|
||||||
@ -40,10 +39,6 @@ export default class GenerateCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class RevokeCmd extends Command {
|
export default class RevokeCmd extends Command {
|
||||||
@ -41,10 +40,6 @@ export default class RevokeCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -31,7 +31,6 @@ export default class ApiKeysCmd extends Command {
|
|||||||
public static examples = ['$ balena api-keys'];
|
public static examples = ['$ balena api-keys'];
|
||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
help: cf.help,
|
|
||||||
user: Flags.boolean({
|
user: Flags.boolean({
|
||||||
char: 'u',
|
char: 'u',
|
||||||
description: 'show API keys for your user',
|
description: 'show API keys for your user',
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent } from '../../utils/lazy';
|
import { stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class AppCreateCmd extends Command {
|
export default class AppCreateCmd extends Command {
|
||||||
@ -66,7 +65,6 @@ export default class AppCreateCmd extends Command {
|
|||||||
description:
|
description:
|
||||||
'app device type (Check available types with `balena devices supported`)',
|
'app device type (Check available types with `balena devices supported`)',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent } from '../../utils/lazy';
|
import { stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class BlockCreateCmd extends Command {
|
export default class BlockCreateCmd extends Command {
|
||||||
@ -66,7 +65,6 @@ export default class BlockCreateCmd extends Command {
|
|||||||
description:
|
description:
|
||||||
'block device type (Check available types with `balena devices supported`)',
|
'block device type (Check available types with `balena devices supported`)',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -118,7 +118,6 @@ export default class ConfigGenerateCmd extends Command {
|
|||||||
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
|
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
|
||||||
exclusive: ['device'],
|
exclusive: ['device'],
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -45,7 +45,6 @@ export default class ConfigInjectCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
drive: cf.driveOrImg,
|
drive: cf.driveOrImg,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static root = true;
|
public static root = true;
|
||||||
|
@ -38,7 +38,6 @@ export default class ConfigReadCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
drive: cf.driveOrImg,
|
drive: cf.driveOrImg,
|
||||||
help: cf.help,
|
|
||||||
json: cf.json,
|
json: cf.json,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ export default class ConfigReconfigureCmd extends Command {
|
|||||||
description: 'show advanced commands',
|
description: 'show advanced commands',
|
||||||
char: 'v',
|
char: 'v',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
version: Flags.string({
|
version: Flags.string({
|
||||||
description: 'balenaOS version, for example "2.32.0" or "2.44.0+rev1"',
|
description: 'balenaOS version, for example "2.32.0" or "2.44.0+rev1"',
|
||||||
}),
|
}),
|
||||||
|
@ -50,7 +50,6 @@ export default class ConfigWriteCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
drive: cf.driveOrImg,
|
drive: cf.driveOrImg,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static root = true;
|
public static root = true;
|
||||||
|
@ -43,7 +43,6 @@ export default class DeviceDeactivateCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
yes: cf.yes,
|
yes: cf.yes,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { ExpectedError } from '../../errors';
|
import { ExpectedError } from '../../errors';
|
||||||
|
|
||||||
@ -36,10 +35,6 @@ export default class DeviceIdentifyCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -64,7 +64,6 @@ export default class DeviceCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
json: cf.json,
|
json: cf.json,
|
||||||
help: cf.help,
|
|
||||||
view: Flags.boolean({
|
view: Flags.boolean({
|
||||||
default: false,
|
default: false,
|
||||||
description: 'open device dashboard page',
|
description: 'open device dashboard page',
|
||||||
|
@ -29,7 +29,6 @@ interface FlagsDef {
|
|||||||
'os-version'?: string;
|
'os-version'?: string;
|
||||||
drive?: string;
|
drive?: string;
|
||||||
config?: string;
|
config?: string;
|
||||||
help: void;
|
|
||||||
'provisioning-key-name'?: string;
|
'provisioning-key-name'?: string;
|
||||||
'provisioning-key-expiry-date'?: string;
|
'provisioning-key-expiry-date'?: string;
|
||||||
}
|
}
|
||||||
@ -101,7 +100,6 @@ export default class DeviceInitCmd extends Command {
|
|||||||
description:
|
description:
|
||||||
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
|
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -58,7 +58,6 @@ export default class DeviceListCmd extends Command {
|
|||||||
public static flags = {
|
public static flags = {
|
||||||
fleet: cf.fleet,
|
fleet: cf.fleet,
|
||||||
json: cf.json,
|
json: cf.json,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static primary = true;
|
public static primary = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class DeviceLocalModeCmd extends Command {
|
export default class DeviceLocalModeCmd extends Command {
|
||||||
@ -55,7 +54,6 @@ export default class DeviceLocalModeCmd extends Command {
|
|||||||
description: 'output boolean indicating local mode status',
|
description: 'output boolean indicating local mode status',
|
||||||
exclusive: ['enable', 'disable'],
|
exclusive: ['enable', 'disable'],
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -56,7 +56,6 @@ export default class DeviceMoveCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
fleet: cf.fleet,
|
fleet: cf.fleet,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -58,7 +58,6 @@ export default class DeviceOsUpdateCmd extends Command {
|
|||||||
exclusive: ['version'],
|
exclusive: ['version'],
|
||||||
}),
|
}),
|
||||||
yes: cf.yes,
|
yes: cf.yes,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { getExpandedProp } from '../../utils/pine';
|
import { getExpandedProp } from '../../utils/pine';
|
||||||
|
|
||||||
@ -44,10 +43,6 @@ export default class DevicePinCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import { ExpectedError } from '../../errors';
|
import { ExpectedError } from '../../errors';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class DevicePublicUrlCmd extends Command {
|
export default class DevicePublicUrlCmd extends Command {
|
||||||
@ -57,7 +56,6 @@ export default class DevicePublicUrlCmd extends Command {
|
|||||||
description: 'determine if public URL is enabled',
|
description: 'determine if public URL is enabled',
|
||||||
exclusive: ['enable', 'disable'],
|
exclusive: ['enable', 'disable'],
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class DevicePurgeCmd extends Command {
|
export default class DevicePurgeCmd extends Command {
|
||||||
@ -42,10 +41,6 @@ export default class DevicePurgeCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -37,7 +37,6 @@ export default class DeviceRebootCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
force: cf.force,
|
force: cf.force,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags } from '@oclif/core';
|
import { Flags } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import * as ca from '../../utils/common-args';
|
import * as ca from '../../utils/common-args';
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { applicationIdInfo } from '../../utils/messages';
|
import { applicationIdInfo } from '../../utils/messages';
|
||||||
@ -53,7 +52,6 @@ export default class DeviceRegisterCmd extends Command {
|
|||||||
description:
|
description:
|
||||||
"device type slug (run 'balena devices supported' for possible values)",
|
"device type slug (run 'balena devices supported' for possible values)",
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent, getCliForm } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent, getCliForm } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class DeviceRenameCmd extends Command {
|
export default class DeviceRenameCmd extends Command {
|
||||||
@ -43,10 +42,6 @@ export default class DeviceRenameCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
||||||
import type {
|
import type {
|
||||||
BalenaSDK,
|
BalenaSDK,
|
||||||
@ -59,7 +58,6 @@ export default class DeviceRestartCmd extends Command {
|
|||||||
'comma-separated list (no blank spaces) of service names to restart',
|
'comma-separated list (no blank spaces) of service names to restart',
|
||||||
char: 's',
|
char: 's',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -45,7 +45,6 @@ export default class DeviceRmCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
yes: cf.yes,
|
yes: cf.yes,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -38,7 +38,6 @@ export default class DeviceShutdownCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
force: cf.force,
|
force: cf.force,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
||||||
import type { BalenaSDK } from 'balena-sdk';
|
import type { BalenaSDK } from 'balena-sdk';
|
||||||
|
|
||||||
@ -46,10 +45,6 @@ export default class DeviceStartServiceCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getCliUx, stripIndent } from '../../utils/lazy';
|
||||||
import type { BalenaSDK } from 'balena-sdk';
|
import type { BalenaSDK } from 'balena-sdk';
|
||||||
|
|
||||||
@ -46,10 +45,6 @@ export default class DeviceStopServiceCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class DeviceTrackFleetCmd extends Command {
|
export default class DeviceTrackFleetCmd extends Command {
|
||||||
@ -35,10 +34,6 @@ export default class DeviceTrackFleetCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -18,8 +18,6 @@ import { Flags } from '@oclif/core';
|
|||||||
import type * as BalenaSdk from 'balena-sdk';
|
import type * as BalenaSdk from 'balena-sdk';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
|
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class DevicesSupportedCmd extends Command {
|
export default class DevicesSupportedCmd extends Command {
|
||||||
@ -40,7 +38,6 @@ export default class DevicesSupportedCmd extends Command {
|
|||||||
];
|
];
|
||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
help: cf.help,
|
|
||||||
json: Flags.boolean({
|
json: Flags.boolean({
|
||||||
char: 'j',
|
char: 'j',
|
||||||
description: 'produce JSON output instead of tabular output',
|
description: 'produce JSON output instead of tabular output',
|
||||||
|
2
src/commands/env/add.ts
vendored
2
src/commands/env/add.ts
vendored
@ -26,7 +26,6 @@ import { applicationIdInfo } from '../../utils/messages';
|
|||||||
interface FlagsDef {
|
interface FlagsDef {
|
||||||
fleet?: string;
|
fleet?: string;
|
||||||
device?: string; // device UUID
|
device?: string; // device UUID
|
||||||
help: void;
|
|
||||||
quiet: boolean;
|
quiet: boolean;
|
||||||
service?: string; // service name
|
service?: string; // service name
|
||||||
}
|
}
|
||||||
@ -96,7 +95,6 @@ export default class EnvAddCmd extends Command {
|
|||||||
public static flags = {
|
public static flags = {
|
||||||
fleet: { ...cf.fleet, exclusive: ['device'] },
|
fleet: { ...cf.fleet, exclusive: ['device'] },
|
||||||
device: { ...cf.device, exclusive: ['fleet'] },
|
device: { ...cf.device, exclusive: ['fleet'] },
|
||||||
help: cf.help,
|
|
||||||
quiet: cf.quiet,
|
quiet: cf.quiet,
|
||||||
service: cf.service,
|
service: cf.service,
|
||||||
};
|
};
|
||||||
|
3
src/commands/env/rename.ts
vendored
3
src/commands/env/rename.ts
vendored
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
|
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import * as ec from '../../utils/env-common';
|
import * as ec from '../../utils/env-common';
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { parseAsInteger } from '../../utils/validation';
|
import { parseAsInteger } from '../../utils/validation';
|
||||||
@ -57,7 +55,6 @@ export default class EnvRenameCmd extends Command {
|
|||||||
config: ec.booleanConfig,
|
config: ec.booleanConfig,
|
||||||
device: ec.booleanDevice,
|
device: ec.booleanDevice,
|
||||||
service: ec.booleanService,
|
service: ec.booleanService,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -103,7 +103,6 @@ export default class EnvsCmd extends Command {
|
|||||||
exclusive: ['service'],
|
exclusive: ['service'],
|
||||||
}),
|
}),
|
||||||
device: { ...cf.device, exclusive: ['fleet'] },
|
device: { ...cf.device, exclusive: ['fleet'] },
|
||||||
help: cf.help,
|
|
||||||
json: cf.json,
|
json: cf.json,
|
||||||
service: { ...cf.service, exclusive: ['config'] },
|
service: { ...cf.service, exclusive: ['config'] },
|
||||||
};
|
};
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent } from '../../utils/lazy';
|
import { stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class FleetCreateCmd extends Command {
|
export default class FleetCreateCmd extends Command {
|
||||||
@ -66,7 +65,6 @@ export default class FleetCreateCmd extends Command {
|
|||||||
description:
|
description:
|
||||||
'fleet device type (Check available types with `balena devices supported`)',
|
'fleet device type (Check available types with `balena devices supported`)',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -42,7 +42,6 @@ export default class FleetCmd extends Command {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
help: cf.help,
|
|
||||||
view: Flags.boolean({
|
view: Flags.boolean({
|
||||||
default: false,
|
default: false,
|
||||||
description: 'open fleet dashboard page',
|
description: 'open fleet dashboard page',
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { getExpandedProp } from '../../utils/pine';
|
import { getExpandedProp } from '../../utils/pine';
|
||||||
|
|
||||||
@ -44,10 +43,6 @@ export default class FleetPinCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import * as ca from '../../utils/common-args';
|
import * as ca from '../../utils/common-args';
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { applicationIdInfo } from '../../utils/messages';
|
import { applicationIdInfo } from '../../utils/messages';
|
||||||
@ -40,10 +39,6 @@ export default class FleetPurgeCmd extends Command {
|
|||||||
fleet: ca.fleetRequired,
|
fleet: ca.fleetRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -16,9 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import * as ca from '../../utils/common-args';
|
import * as ca from '../../utils/common-args';
|
||||||
import { getBalenaSdk, stripIndent, getCliForm } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent, getCliForm } from '../../utils/lazy';
|
||||||
import { applicationIdInfo } from '../../utils/messages';
|
import { applicationIdInfo } from '../../utils/messages';
|
||||||
@ -48,10 +46,6 @@ export default class FleetRenameCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import * as ca from '../../utils/common-args';
|
import * as ca from '../../utils/common-args';
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { applicationIdInfo } from '../../utils/messages';
|
import { applicationIdInfo } from '../../utils/messages';
|
||||||
@ -39,10 +38,6 @@ export default class FleetRestartCmd extends Command {
|
|||||||
fleet: ca.fleetRequired,
|
fleet: ca.fleetRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -44,7 +44,6 @@ export default class FleetRmCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
yes: cf.yes,
|
yes: cf.yes,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class FleetTrackLatestCmd extends Command {
|
export default class FleetTrackLatestCmd extends Command {
|
||||||
@ -38,10 +37,6 @@ export default class FleetTrackLatestCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -40,7 +40,6 @@ export default class FleetsCmd extends Command {
|
|||||||
public static examples = ['$ balena fleets'];
|
public static examples = ['$ balena fleets'];
|
||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
help: cf.help,
|
|
||||||
json: cf.json,
|
json: cf.json,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -66,7 +66,6 @@ export default class JoinCmd extends Command {
|
|||||||
description: 'the interval in minutes to check for updates',
|
description: 'the interval in minutes to check for updates',
|
||||||
char: 'i',
|
char: 'i',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import { ExpectedError } from '../../errors';
|
import { ExpectedError } from '../../errors';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class KeyAddCmd extends Command {
|
export default class KeyAddCmd extends Command {
|
||||||
@ -61,10 +60,6 @@ export default class KeyAddCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public static readStdin = true;
|
public static readStdin = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
||||||
import { parseAsInteger } from '../../utils/validation';
|
import { parseAsInteger } from '../../utils/validation';
|
||||||
|
|
||||||
@ -38,10 +37,6 @@ export default class KeyCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -42,7 +42,6 @@ export default class KeyRmCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
yes: cf.yes,
|
yes: cf.yes,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class KeysCmd extends Command {
|
export default class KeysCmd extends Command {
|
||||||
@ -27,10 +26,6 @@ export default class KeysCmd extends Command {
|
|||||||
`;
|
`;
|
||||||
public static examples = ['$ balena keys'];
|
public static examples = ['$ balena keys'];
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent } from '../../utils/lazy';
|
import { stripIndent } from '../../utils/lazy';
|
||||||
import { parseAsLocalHostnameOrIp } from '../../utils/validation';
|
import { parseAsLocalHostnameOrIp } from '../../utils/validation';
|
||||||
|
|
||||||
@ -50,10 +49,6 @@ export default class LeaveCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
public static primary = true;
|
public static primary = true;
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Args } from '@oclif/core';
|
import { Args } from '@oclif/core';
|
||||||
import { promisify } from 'util';
|
import { promisify } from 'util';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent } from '../../utils/lazy';
|
import { stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class LocalConfigureCmd extends Command {
|
export default class LocalConfigureCmd extends Command {
|
||||||
@ -40,10 +39,6 @@ export default class LocalConfigureCmd extends Command {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static root = true;
|
public static root = true;
|
||||||
public static offlineCompatible = true;
|
public static offlineCompatible = true;
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ export default class LocalFlashCmd extends Command {
|
|||||||
public static flags = {
|
public static flags = {
|
||||||
drive: cf.drive,
|
drive: cf.drive,
|
||||||
yes: cf.yes,
|
yes: cf.yes,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static offlineCompatible = true;
|
public static offlineCompatible = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent, getCliForm } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent, getCliForm } from '../../utils/lazy';
|
||||||
import { ExpectedError } from '../../errors';
|
import { ExpectedError } from '../../errors';
|
||||||
import type { WhoamiResult } from 'balena-sdk';
|
import type { WhoamiResult } from 'balena-sdk';
|
||||||
@ -30,7 +29,6 @@ interface FlagsDef {
|
|||||||
user?: string;
|
user?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
port?: number;
|
port?: number;
|
||||||
help: void;
|
|
||||||
hideExperimentalWarning: boolean;
|
hideExperimentalWarning: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,7 +110,6 @@ export default class LoginCmd extends Command {
|
|||||||
default: false,
|
default: false,
|
||||||
description: 'Hides warning for experimental features',
|
description: 'Hides warning for experimental features',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static primary = true;
|
public static primary = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import type { LogMessage } from 'balena-sdk';
|
import type { LogMessage } from 'balena-sdk';
|
||||||
|
|
||||||
@ -85,7 +84,6 @@ export default class LogsCmd extends Command {
|
|||||||
'Only show system logs. This can be used in combination with --service.',
|
'Only show system logs. This can be used in combination with --service.',
|
||||||
char: 'S',
|
char: 'S',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static primary = true;
|
public static primary = true;
|
||||||
|
@ -48,7 +48,6 @@ export default class NoteCmd extends Command {
|
|||||||
exclusive: ['device'],
|
exclusive: ['device'],
|
||||||
hidden: true,
|
hidden: true,
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class OrgsCmd extends Command {
|
export default class OrgsCmd extends Command {
|
||||||
@ -27,10 +26,6 @@ export default class OrgsCmd extends Command {
|
|||||||
`;
|
`;
|
||||||
public static examples = ['$ balena orgs'];
|
public static examples = ['$ balena orgs'];
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getCliForm, stripIndent } from '../../utils/lazy';
|
import { getCliForm, stripIndent } from '../../utils/lazy';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import type { DeviceTypeJson } from 'balena-sdk';
|
import type { DeviceTypeJson } from 'balena-sdk';
|
||||||
@ -56,7 +55,6 @@ export default class OsBuildConfigCmd extends Command {
|
|||||||
char: 'o',
|
char: 'o',
|
||||||
required: true,
|
required: true,
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -155,7 +155,6 @@ export default class OsConfigureCmd extends Command {
|
|||||||
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
|
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
|
||||||
exclusive: ['config', 'device'],
|
exclusive: ['config', 'device'],
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent } from '../../utils/lazy';
|
import { stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class OsDownloadCmd extends Command {
|
export default class OsDownloadCmd extends Command {
|
||||||
@ -79,7 +78,6 @@ export default class OsDownloadCmd extends Command {
|
|||||||
or 'menu-esr' (interactive menu, ESR versions)
|
or 'menu-esr' (interactive menu, ESR versions)
|
||||||
`,
|
`,
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -52,7 +52,6 @@ export default class OsInitializeCmd extends Command {
|
|||||||
type: cf.deviceType,
|
type: cf.deviceType,
|
||||||
drive: cf.drive,
|
drive: cf.drive,
|
||||||
yes: cf.yes,
|
yes: cf.yes,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent } from '../../utils/lazy';
|
import { stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class OsVersionsCmd extends Command {
|
export default class OsVersionsCmd extends Command {
|
||||||
@ -41,7 +40,6 @@ export default class OsVersionsCmd extends Command {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
help: cf.help,
|
|
||||||
esr: Flags.boolean({
|
esr: Flags.boolean({
|
||||||
description: 'select balenaOS ESR versions',
|
description: 'select balenaOS ESR versions',
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import type { Interfaces } from '@oclif/core';
|
import type { Interfaces } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { dockerignoreHelp, registrySecretsHelp } from '../../utils/messages';
|
import { dockerignoreHelp, registrySecretsHelp } from '../../utils/messages';
|
||||||
import type { BalenaSDK } from 'balena-sdk';
|
import type { BalenaSDK } from 'balena-sdk';
|
||||||
@ -219,7 +218,6 @@ export default class PushCmd extends Command {
|
|||||||
default: false,
|
default: false,
|
||||||
}),
|
}),
|
||||||
note: Flags.string({ description: 'The notes for this release' }),
|
note: Flags.string({ description: 'The notes for this release' }),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static primary = true;
|
public static primary = true;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { commitOrIdArg } from '.';
|
import { commitOrIdArg } from '.';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class ReleaseFinalizeCmd extends Command {
|
export default class ReleaseFinalizeCmd extends Command {
|
||||||
@ -40,10 +39,6 @@ export default class ReleaseFinalizeCmd extends Command {
|
|||||||
'$ balena release finalize 1234567',
|
'$ balena release finalize 1234567',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static args = {
|
public static args = {
|
||||||
commitOrId: commitOrIdArg({
|
commitOrId: commitOrIdArg({
|
||||||
description: 'the commit or ID of the release to finalize',
|
description: 'the commit or ID of the release to finalize',
|
||||||
|
@ -44,7 +44,6 @@ export default class ReleaseCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
json: cf.json,
|
json: cf.json,
|
||||||
help: cf.help,
|
|
||||||
composition: Flags.boolean({
|
composition: Flags.boolean({
|
||||||
default: false,
|
default: false,
|
||||||
char: 'c',
|
char: 'c',
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { commitOrIdArg } from '.';
|
import { commitOrIdArg } from '.';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class ReleaseInvalidateCmd extends Command {
|
export default class ReleaseInvalidateCmd extends Command {
|
||||||
@ -35,10 +34,6 @@ export default class ReleaseInvalidateCmd extends Command {
|
|||||||
'$ balena release invalidate 1234567',
|
'$ balena release invalidate 1234567',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static args = {
|
public static args = {
|
||||||
commitOrId: commitOrIdArg({
|
commitOrId: commitOrIdArg({
|
||||||
description: 'the commit or ID of the release to invalidate',
|
description: 'the commit or ID of the release to invalidate',
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { commitOrIdArg } from '.';
|
import { commitOrIdArg } from '.';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class ReleaseValidateCmd extends Command {
|
export default class ReleaseValidateCmd extends Command {
|
||||||
@ -34,10 +33,6 @@ export default class ReleaseValidateCmd extends Command {
|
|||||||
'$ balena release validate 1234567',
|
'$ balena release validate 1234567',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static args = {
|
public static args = {
|
||||||
commitOrId: commitOrIdArg({
|
commitOrId: commitOrIdArg({
|
||||||
description: 'the commit or ID of the release to validate',
|
description: 'the commit or ID of the release to validate',
|
||||||
|
@ -40,7 +40,6 @@ export default class ReleasesCmd extends Command {
|
|||||||
|
|
||||||
public static flags = {
|
public static flags = {
|
||||||
json: cf.json,
|
json: cf.json,
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static args = {
|
public static args = {
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags } from '@oclif/core';
|
import { Flags } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getCliUx, stripIndent } from '../../utils/lazy';
|
import { getCliUx, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class ScanCmd extends Command {
|
export default class ScanCmd extends Command {
|
||||||
@ -48,7 +47,6 @@ export default class ScanCmd extends Command {
|
|||||||
char: 't',
|
char: 't',
|
||||||
description: 'scan timeout in seconds',
|
description: 'scan timeout in seconds',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
json: Flags.boolean({
|
json: Flags.boolean({
|
||||||
default: false,
|
default: false,
|
||||||
char: 'j',
|
char: 'j',
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class SettingsCmd extends Command {
|
export default class SettingsCmd extends Command {
|
||||||
@ -27,10 +26,6 @@ export default class SettingsCmd extends Command {
|
|||||||
`;
|
`;
|
||||||
public static examples = ['$ balena settings'];
|
public static examples = ['$ balena settings'];
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
await this.parse(SettingsCmd);
|
await this.parse(SettingsCmd);
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { Flags, Args } from '@oclif/core';
|
import { Flags, Args } from '@oclif/core';
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import {
|
import {
|
||||||
parseAsInteger,
|
parseAsInteger,
|
||||||
@ -98,7 +97,6 @@ export default class SshCmd extends Command {
|
|||||||
default: false,
|
default: false,
|
||||||
description: 'bypass global proxy configuration for the ssh connection',
|
description: 'bypass global proxy configuration for the ssh connection',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static primary = true;
|
public static primary = true;
|
||||||
|
@ -67,7 +67,6 @@ export default class SupportCmd extends Command {
|
|||||||
'length of time to enable support for, in (h)ours or (d)ays, e.g. 12h, 2d',
|
'length of time to enable support for, in (h)ours or (d)ays, e.g. 12h, 2d',
|
||||||
char: 't',
|
char: 't',
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -58,7 +58,6 @@ export default class TagRmCmd extends Command {
|
|||||||
...cf.release,
|
...cf.release,
|
||||||
exclusive: ['fleet', 'device'],
|
exclusive: ['fleet', 'device'],
|
||||||
},
|
},
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -72,7 +72,6 @@ export default class TagSetCmd extends Command {
|
|||||||
...cf.release,
|
...cf.release,
|
||||||
exclusive: ['fleet', 'device'],
|
exclusive: ['fleet', 'device'],
|
||||||
},
|
},
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -51,7 +51,6 @@ export default class TagsCmd extends Command {
|
|||||||
...cf.release,
|
...cf.release,
|
||||||
exclusive: ['fleet', 'device'],
|
exclusive: ['fleet', 'device'],
|
||||||
},
|
},
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static authenticated = true;
|
public static authenticated = true;
|
||||||
|
@ -22,7 +22,6 @@ import {
|
|||||||
InvalidPortMappingError,
|
InvalidPortMappingError,
|
||||||
ExpectedError,
|
ExpectedError,
|
||||||
} from '../../errors';
|
} from '../../errors';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
||||||
import { lowercaseIfSlug } from '../../utils/normalization';
|
import { lowercaseIfSlug } from '../../utils/normalization';
|
||||||
|
|
||||||
@ -85,7 +84,6 @@ export default class TunnelCmd extends Command {
|
|||||||
char: 'p',
|
char: 'p',
|
||||||
multiple: true,
|
multiple: true,
|
||||||
}),
|
}),
|
||||||
help: cf.help,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static primary = true;
|
public static primary = true;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import Command from '../../command';
|
import Command from '../../command';
|
||||||
import * as cf from '../../utils/common-flags';
|
|
||||||
import { stripIndent, getChalk, getVisuals } from '../../utils/lazy';
|
import { stripIndent, getChalk, getVisuals } from '../../utils/lazy';
|
||||||
|
|
||||||
export default class UtilAvailableDrivesCmd extends Command {
|
export default class UtilAvailableDrivesCmd extends Command {
|
||||||
@ -27,10 +26,6 @@ export default class UtilAvailableDrivesCmd extends Command {
|
|||||||
Does not list system drives.
|
Does not list system drives.
|
||||||
`;
|
`;
|
||||||
|
|
||||||
public static flags = {
|
|
||||||
help: cf.help,
|
|
||||||
};
|
|
||||||
|
|
||||||
public static offlineCompatible = true;
|
public static offlineCompatible = true;
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
|
@ -4,7 +4,6 @@ import { getBalenaSdk } from './lazy';
|
|||||||
export interface FlagsDef {
|
export interface FlagsDef {
|
||||||
organization?: string;
|
organization?: string;
|
||||||
type?: string; // application device type
|
type?: string; // application device type
|
||||||
help: void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ArgsDef {
|
export interface ArgsDef {
|
||||||
|
@ -30,8 +30,6 @@ export const device = Flags.string({
|
|||||||
description: 'device UUID',
|
description: 'device UUID',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const help = Flags.help({ char: 'h' });
|
|
||||||
|
|
||||||
export const quiet = Flags.boolean({
|
export const quiet = Flags.boolean({
|
||||||
char: 'q',
|
char: 'q',
|
||||||
description: 'suppress warning messages',
|
description: 'suppress warning messages',
|
||||||
|
Loading…
Reference in New Issue
Block a user