github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/version/command.go (about)

     1  package version
     2  
     3  import (
     4  	"github.com/pterm/pterm"
     5  	"github.com/taubyte/tau-cli/common"
     6  	"github.com/urfave/cli/v2"
     7  )
     8  
     9  var Command = &cli.Command{
    10  	Name:   "version",
    11  	Action: Run,
    12  }
    13  
    14  func Run(ctx *cli.Context) error {
    15  	pterm.Info.Println(common.Version)
    16  	return nil
    17  }