mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
26 lines
616 B
Go
26 lines
616 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var worktree_moveCmd = &cobra.Command{
|
|
Use: "move",
|
|
Short: "Move a worktree to a new location",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(worktree_moveCmd).Standalone()
|
|
|
|
worktree_moveCmd.Flags().BoolP("force", "f", false, "force move even if worktree is dirty or locked")
|
|
worktreeCmd.AddCommand(worktree_moveCmd)
|
|
|
|
carapace.Gen(worktree_moveCmd).PositionalCompletion(
|
|
git.ActionWorktrees(),
|
|
carapace.ActionDirectories(),
|
|
)
|
|
}
|