mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-21 19:15:44 +00:00
Add dynamic completion suppport
This commit adds dynamic completion support for the following commands and flags: - `flux delete ...` command - `flux export ...` command - `flux get ...` command - `flux reconcile ...` command - `flux resume ...` command - `flux suspend ...` command - `--namespace` flag - `--context` flag Signed-off-by: Kazuki Suda <kazuki.suda@gmail.com>
This commit is contained in:
parent
70509ffcb4
commit
254cc131ae
67 changed files with 162 additions and 5 deletions
|
|
@ -36,6 +36,7 @@ var getSourceGitCmd = &cobra.Command{
|
|||
|
||||
# List Git repositories from all namespaces
|
||||
flux get sources git --all-namespaces`,
|
||||
ValidArgsFunction: resourceNamesCompletionFunc(sourcev1.GroupVersion.WithKind(sourcev1.GitRepositoryKind)),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
get := getCommand{
|
||||
apiType: gitRepositoryType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue