mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
25 lines
553 B
Go
25 lines
553 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var stash_branchCmd = &cobra.Command{
|
|
Use: "branch",
|
|
Short: "create and check out a new branch with the stashes changes",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(stash_branchCmd).Standalone()
|
|
|
|
stashCmd.AddCommand(stash_branchCmd)
|
|
|
|
carapace.Gen(stash_branchCmd).PositionalCompletion(
|
|
git.ActionRefs(git.RefOption{LocalBranches: true}),
|
|
git.ActionStashes(),
|
|
)
|
|
}
|