mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
22 lines
562 B
Go
22 lines
562 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var writeTreeCmd = &cobra.Command{
|
|
Use: "write-tree",
|
|
Short: "Create a tree object from the current index",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_manipulator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(writeTreeCmd).Standalone()
|
|
|
|
writeTreeCmd.Flags().Bool("missing-ok", false, "allow missing objects")
|
|
writeTreeCmd.Flags().String("prefix", "", "write tree object for a subdirectory <prefix>")
|
|
rootCmd.AddCommand(writeTreeCmd)
|
|
}
|