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