mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-30 08:03:55 +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
|
||||
class FakeHelpCommand {
|
||||
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 = [
|
||||
|
@ -186,7 +186,7 @@ Users are encouraged to regularly update the balena CLI to the latest version.
|
||||
- [envs](#envs)
|
||||
- [env rm <id>](#env-rm-id)
|
||||
- [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
|
||||
|
||||
@ -1034,7 +1034,7 @@ suppress warning messages
|
||||
|
||||
service name
|
||||
|
||||
## env rename <name> <value>
|
||||
## env rename <id> <value>
|
||||
|
||||
Change the value of a configuration or environment variable for an application,
|
||||
device or service, as selected by command-line options.
|
||||
@ -1214,7 +1214,7 @@ same as '--application'
|
||||
|
||||
## 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:
|
||||
|
||||
|
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> = {
|
||||
config: ec.booleanConfig,
|
||||
|
@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { stripIndent } from './utils/lazy';
|
||||
import { ExpectedError } from './errors';
|
||||
import { exitWithExpectedError } from './errors';
|
||||
|
||||
export interface AppOptions {
|
||||
// Prevent the default behavior of flushing stdout after running a command
|
||||
@ -101,7 +101,7 @@ export function checkDeletedCommand(argvSlice: string[]): void {
|
||||
version: string,
|
||||
verb = 'replaced',
|
||||
) {
|
||||
throw new ExpectedError(stripIndent`
|
||||
exitWithExpectedError(stripIndent`
|
||||
Note: the command "balena ${oldCmd}" was ${verb} in CLI version ${version}.
|
||||
Please use "balena ${alternative}" instead.
|
||||
`);
|
||||
@ -111,7 +111,7 @@ export function checkDeletedCommand(argvSlice: string[]): void {
|
||||
if (alternative) {
|
||||
msg = [msg, alternative].join('\n');
|
||||
}
|
||||
throw new ExpectedError(msg);
|
||||
exitWithExpectedError(msg);
|
||||
}
|
||||
const stopAlternative =
|
||||
'Please use "balena ssh -s" to access the host OS, then use `balena-engine stop`.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user