Skip to content

feat: add autocomplete for --profile and --module - #10190

Open
liamdalg wants to merge 1 commit into
GoogleContainerTools:mainfrom
liamdalg:autocomplete
Open

liamdalg wants to merge 1 commit into
GoogleContainerTools:mainfrom
liamdalg:autocomplete

Conversation

@liamdalg

Copy link
Copy Markdown

Description

  • Add autocompletion for --profile and --module.
  • Scope autocompletion for --filename to .{yaml,yml}

User facing changes

For example, with

  • Module api: staging, prod
  • Module web: dev, staging, prod
$ skaffold __complete dev -p ""
INFO[0000] Skaffold &{Version: ConfigVersion:skaffold/v4beta14 GitVersion: GitCommit: BuildDate: GoVersion:go1.27.1-X:nodwarf5 Compiler:gc Platform:linux/amd64 User:}  subtask=-1 task=DevLoop
staging
prod
dev
:4
Completion ended with directive: ShellCompDirectiveNoFileComp
λ skaffold __complete dev -m ""
INFO[0000] Skaffold &{Version: ConfigVersion:skaffold/v4beta14 GitVersion: GitCommit: BuildDate: GoVersion:go1.27.1-X:nodwarf5 Compiler:gc Platform:linux/amd64 User:}  subtask=-1 task=DevLoop
api
web
:4
Completion ended with directive: ShellCompDirectiveNoFileCom
$ skaffold __complete dev -m api -p ""
INFO[0000] Skaffold &{Version: ConfigVersion:skaffold/v4beta14 GitVersion: GitCommit: BuildDate: GoVersion:go1.27.1-X:nodwarf5 Compiler:gc Platform:linux/amd64 User:}  subtask=-1 task=DevLoop
staging
prod
:4
Completion ended with directive: ShellCompDirectiveNoFileComp

@liamdalg
liamdalg requested a review from a team as a code owner September 25, 2026 00:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant