Skip to content

Commit 79621c4

Browse files
authored
chore(scripts): add release to the completion script (#3203)
1 parent 2d07c99 commit 79621c4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ program
6161
await generate(generatorList({ language, client, clientList }));
6262
});
6363

64-
const buildCommand = program.command('build');
64+
const buildCommand = program.command('build').description('Build the clients or specs');
6565

6666
buildCommand
6767
.command('clients')
@@ -104,7 +104,7 @@ buildCommand
104104
});
105105
});
106106

107-
const ctsCommand = program.command('cts');
107+
const ctsCommand = program.command('cts').description('Generate and run the CTS tests');
108108

109109
ctsCommand
110110
.command('generate')

scripts/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ _apic_complete() {
9292
cur="${COMP_WORDS[COMP_CWORD]}"
9393
prev="${COMP_WORDS[COMP_CWORD-1]}"
9494
if [[ COMP_CWORD -eq 1 ]]; then
95-
COMPREPLY=($(compgen -W "generate build cts playground format snippets" -- "$cur"))
95+
COMPREPLY=($(compgen -W "build cts format generate playground release snippets" -- "$cur"))
9696
else
9797
first="${COMP_WORDS[1]}"
9898
if [[ $first == "generate" || $first == "playground" || $first == "snippets" ]]; then
@@ -103,6 +103,8 @@ _apic_complete() {
103103
_apic_build_complete
104104
elif [[ $first == "cts" ]]; then
105105
_apic_cts_complete
106+
elif [[ $first == "release" ]]; then
107+
COMPREPLY=($(compgen -W "$(_list_languages_all)" -- "$cur"))
106108
fi
107109
fi
108110
}

0 commit comments

Comments
 (0)