Skip to content

Commit

Permalink
fix: completion for flags (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerdav authored Mar 20, 2023
1 parent 7c2e51b commit 945b55d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cmd/xc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,18 +234,18 @@ func getVersion() string {
func completion(tasks models.Tasks) *complete.Command {
return &complete.Command{
Flags: map[string]complete.Predictor{
"-version": predict.Nothing,
"-V": predict.Nothing,
"-h": predict.Nothing,
"-help": predict.Nothing,
"-f": predict.Files("*.md"),
"-file": predict.Files("*.md"),
"-s": predict.Nothing,
"-short": predict.Nothing,
"-d": predict.Nothing,
"-display": predict.Nothing,
"-H": predict.Nothing,
"-heading": predict.Nothing,
"version": predict.Nothing,
"V": predict.Nothing,
"h": predict.Nothing,
"help": predict.Nothing,
"f": predict.Files("*.md"),
"file": predict.Files("*.md"),
"s": predict.Nothing,
"short": predict.Nothing,
"d": predict.Nothing,
"display": predict.Nothing,
"H": predict.Nothing,
"heading": predict.Nothing,
},
Sub: completeTasks(tasks),
}
Expand Down

0 comments on commit 945b55d

Please sign in to comment.