github.com/tomwright/dasel@v1.27.3/cmd/dasel/main.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/tomwright/dasel/internal/command"
     5  	"os"
     6  )
     7  
     8  func main() {
     9  	cmd := command.NewRootCMD()
    10  	command.ChangeDefaultCommand(cmd, "select", "-v", "--version", "help")
    11  	if err := cmd.Execute(); err != nil {
    12  		cmd.PrintErrln("Error:", err.Error())
    13  		os.Exit(1)
    14  	}
    15  }