github.com/tomwright/dasel@v1.27.3/internal/command/put_bool.go (about) 1 package command 2 3 import ( 4 "github.com/spf13/cobra" 5 ) 6 7 func putBoolCommand() *cobra.Command { 8 return &cobra.Command{ 9 Use: "bool -f <file> -s <selector> <value>", 10 Short: "Update a bool property in the given document.", 11 RunE: func(cmd *cobra.Command, args []string) error { 12 return runGenericPutCommand(genericPutOptions{ 13 ValueType: "bool", 14 Init: getGenericInit(cmd, args), 15 }, cmd) 16 }, 17 } 18 }