Skip to content

Commit

Permalink
helm: Add support for values files (#2428)
Browse files Browse the repository at this point in the history
* helm: Add support for values files

* fix order

---------

Co-authored-by: rsteube <[email protected]>
  • Loading branch information
antoninguyot and rsteube authored Jul 17, 2024
1 parent 89a7e0f commit b10c6bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions completers/helm_completer/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func init() {
}
})
}),
"values": carapace.ActionFiles(".yaml", ".yml"),
"version": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
if len(c.Args) > 1 {
if splitted := strings.Split(c.Args[1], "/"); len(splitted) == 2 {
Expand Down
1 change: 1 addition & 0 deletions completers/helm_completer/cmd/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func init() {
}
})
}),
"values": carapace.ActionFiles(".yaml", ".yml"),
})

carapace.Gen(lintCmd).PositionalCompletion(
Expand Down
1 change: 1 addition & 0 deletions completers/helm_completer/cmd/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func init() {
}
})
}),
"values": carapace.ActionFiles(".yaml", ".yml"),
})

// TODO positional completion
Expand Down
1 change: 1 addition & 0 deletions completers/helm_completer/cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func init() {
}
})
}),
"values": carapace.ActionFiles(".yaml", ".yml"),
"version": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
if len(c.Args) > 1 {
if splitted := strings.Split(c.Args[1], "/"); len(splitted) == 2 {
Expand Down

0 comments on commit b10c6bc

Please sign in to comment.