Skip to content

Commit

Permalink
chore(scripts): add release to the completion script (#3203)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Jun 18, 2024
1 parent 2d07c99 commit 79621c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ program
await generate(generatorList({ language, client, clientList }));
});

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

buildCommand
.command('clients')
Expand Down Expand Up @@ -104,7 +104,7 @@ buildCommand
});
});

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

ctsCommand
.command('generate')
Expand Down
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ _apic_complete() {
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
if [[ COMP_CWORD -eq 1 ]]; then
COMPREPLY=($(compgen -W "generate build cts playground format snippets" -- "$cur"))
COMPREPLY=($(compgen -W "build cts format generate playground release snippets" -- "$cur"))
else
first="${COMP_WORDS[1]}"
if [[ $first == "generate" || $first == "playground" || $first == "snippets" ]]; then
Expand All @@ -103,6 +103,8 @@ _apic_complete() {
_apic_build_complete
elif [[ $first == "cts" ]]; then
_apic_cts_complete
elif [[ $first == "release" ]]; then
COMPREPLY=($(compgen -W "$(_list_languages_all)" -- "$cur"))
fi
fi
}
Expand Down

1 comment on commit 79621c4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.