github.com/tomwright/dasel@v1.27.3/internal/command/put_int.go (about)

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