Skip to content

Commit

Permalink
jj: rebase - added completions
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed May 6, 2024
1 parent c024e19 commit d63d2c1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions completers/jj_completer/cmd/rebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ func init() {
rootCmd.AddCommand(rebaseCmd)

carapace.Gen(rebaseCmd).FlagCompletion(carapace.ActionMap{
"branch": jj.ActionRevs(jj.RevOption{LocalBranches: true, RemoteBranches: true, Tags: true}),
"destination": jj.ActionRevs(jj.RevOption{}.Default()),
"revisions": jj.ActionRevs(jj.RevOption{}.Default()),
"source": jj.ActionRevs(jj.RevOption{}.Default()),
"after": jj.ActionRevs(jj.RevOption{}.Default()),
"before": jj.ActionRevs(jj.RevOption{}.Default()),
"branch": jj.ActionRevs(jj.RevOption{LocalBranches: true, RemoteBranches: true, Tags: true}),
"destination": jj.ActionRevs(jj.RevOption{}.Default()),
"insert-after": jj.ActionRevs(jj.RevOption{}.Default()),
"insert-before": jj.ActionRevs(jj.RevOption{}.Default()),
"revisions": jj.ActionRevs(jj.RevOption{}.Default()),
"source": jj.ActionRevs(jj.RevOption{}.Default()),
})
}

0 comments on commit d63d2c1

Please sign in to comment.