mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
22 lines
603 B
Go
22 lines
603 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var mktreeCmd = &cobra.Command{
|
|
Use: "mktree",
|
|
Short: "Build a tree-object from ls-tree formatted text",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_manipulator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(mktreeCmd).Standalone()
|
|
mktreeCmd.Flags().Bool("batch", false, "allow creation of more than one tree")
|
|
mktreeCmd.Flags().Bool("missing", false, "allow missing objects")
|
|
mktreeCmd.Flags().BoolS("z", "z", false, "input is NUL terminated")
|
|
rootCmd.AddCommand(mktreeCmd)
|
|
}
|