Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(scripts): add release to the completion script #3203

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading