mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-11 21:26:24 +00:00
Merge pull request #2025 from balena-io/convert-help-fixes
Fix issues from removal of capitano
This commit is contained in:
commit
d910319ba5
@ -51,9 +51,9 @@ export async function renderMarkdown(): Promise<string> {
|
|||||||
// This fake command allows capitanodoc to include help in docs
|
// This fake command allows capitanodoc to include help in docs
|
||||||
class FakeHelpCommand {
|
class FakeHelpCommand {
|
||||||
description = stripIndent`
|
description = stripIndent`
|
||||||
List balena commands, or get detailed help for an specific command.
|
List balena commands, or get detailed help for a specific command.
|
||||||
|
|
||||||
List balena commands, or get detailed help for an specific command.
|
List balena commands, or get detailed help for a specific command.
|
||||||
`;
|
`;
|
||||||
|
|
||||||
examples = [
|
examples = [
|
||||||
|
@ -186,7 +186,7 @@ Users are encouraged to regularly update the balena CLI to the latest version.
|
|||||||
- [envs](#envs)
|
- [envs](#envs)
|
||||||
- [env rm <id>](#env-rm-id)
|
- [env rm <id>](#env-rm-id)
|
||||||
- [env add <name> [value]](#env-add-name-value)
|
- [env add <name> [value]](#env-add-name-value)
|
||||||
- [env rename <name> <value>](#env-rename-name-value)
|
- [env rename <id> <value>](#env-rename-id-value)
|
||||||
|
|
||||||
- Tags
|
- Tags
|
||||||
|
|
||||||
@ -1034,7 +1034,7 @@ suppress warning messages
|
|||||||
|
|
||||||
service name
|
service name
|
||||||
|
|
||||||
## env rename <name> <value>
|
## env rename <id> <value>
|
||||||
|
|
||||||
Change the value of a configuration or environment variable for an application,
|
Change the value of a configuration or environment variable for an application,
|
||||||
device or service, as selected by command-line options.
|
device or service, as selected by command-line options.
|
||||||
@ -1214,7 +1214,7 @@ same as '--application'
|
|||||||
|
|
||||||
## help [command]
|
## help [command]
|
||||||
|
|
||||||
List balena commands, or get detailed help for an specific command.
|
List balena commands, or get detailed help for a specific command.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
2
lib/actions-oclif/env/rename.ts
vendored
2
lib/actions-oclif/env/rename.ts
vendored
@ -69,7 +69,7 @@ export default class EnvRenameCmd extends Command {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
public static usage = 'env rename <name> <value>';
|
public static usage = 'env rename <id> <value>';
|
||||||
|
|
||||||
public static flags: flags.Input<FlagsDef> = {
|
public static flags: flags.Input<FlagsDef> = {
|
||||||
config: ec.booleanConfig,
|
config: ec.booleanConfig,
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { stripIndent } from './utils/lazy';
|
import { stripIndent } from './utils/lazy';
|
||||||
import { ExpectedError } from './errors';
|
import { exitWithExpectedError } from './errors';
|
||||||
|
|
||||||
export interface AppOptions {
|
export interface AppOptions {
|
||||||
// Prevent the default behavior of flushing stdout after running a command
|
// Prevent the default behavior of flushing stdout after running a command
|
||||||
@ -101,7 +101,7 @@ export function checkDeletedCommand(argvSlice: string[]): void {
|
|||||||
version: string,
|
version: string,
|
||||||
verb = 'replaced',
|
verb = 'replaced',
|
||||||
) {
|
) {
|
||||||
throw new ExpectedError(stripIndent`
|
exitWithExpectedError(stripIndent`
|
||||||
Note: the command "balena ${oldCmd}" was ${verb} in CLI version ${version}.
|
Note: the command "balena ${oldCmd}" was ${verb} in CLI version ${version}.
|
||||||
Please use "balena ${alternative}" instead.
|
Please use "balena ${alternative}" instead.
|
||||||
`);
|
`);
|
||||||
@ -111,7 +111,7 @@ export function checkDeletedCommand(argvSlice: string[]): void {
|
|||||||
if (alternative) {
|
if (alternative) {
|
||||||
msg = [msg, alternative].join('\n');
|
msg = [msg, alternative].join('\n');
|
||||||
}
|
}
|
||||||
throw new ExpectedError(msg);
|
exitWithExpectedError(msg);
|
||||||
}
|
}
|
||||||
const stopAlternative =
|
const stopAlternative =
|
||||||
'Please use "balena ssh -s" to access the host OS, then use `balena-engine stop`.';
|
'Please use "balena ssh -s" to access the host OS, then use `balena-engine stop`.';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user