Skip to content

Commit

Permalink
Merge pull request #2833 from balena-io/api-v7
Browse files Browse the repository at this point in the history
Api v7
  • Loading branch information
flowzone-app[bot] authored Oct 25, 2024
2 parents 746b6fa + 07a7bd7 commit 6dd6f43
Show file tree
Hide file tree
Showing 120 changed files with 2,397 additions and 2,919 deletions.
9 changes: 8 additions & 1 deletion automation/capitanodoc/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ function renderOclifCommand(command: Category['commands'][0]): string[] {
const result = [`## ${ent.encode(command.name || '')}`];
if (command.aliases?.length) {
result.push('### Aliases');
result.push(command.aliases.map((alias) => `- \`${alias}\``).join('\n'));
result.push(
command.aliases
.map(
(alias) =>
`- \`${alias}\`${command.deprecateAliases ? ' *(deprecated)*' : ''}`,
)
.join('\n'),
);
result.push(
`\nTo use one of the aliases, replace \`${command.name}\` with the alias.`,
);
Expand Down
2 changes: 1 addition & 1 deletion completion/_balena
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ _balena() {

_arguments -C \
'(- 1 *)--version[show version and exit]' \
'(- 1 *)'{-h,--help}'[show help options and exit]' \
'(- 1 *)--help[show help options and exit]' \
'1:first command:_balena_main_cmds' \
'2:second command:_balena_sec_cmds' \
&& ret=0
Expand Down
2 changes: 1 addition & 1 deletion completion/templates/zsh.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $sub_cmds$

_arguments -C \
'(- 1 *)--version[show version and exit]' \
'(- 1 *)'{-h,--help}'[show help options and exit]' \
'(- 1 *)--help[show help options and exit]' \
'1:first command:_balena_main_cmds' \
'2:second command:_balena_sec_cmds' \
&& ret=0
Expand Down
Loading

0 comments on commit 6dd6f43

Please sign in to comment.