20 lines
323 B
Go
20 lines
323 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"git.offline-twitter.com/offline-labs/gas-stack/pkg/version"
|
|
)
|
|
|
|
var cmd_version = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print the version of `gas`",
|
|
Args: cobra.NoArgs,
|
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println(version.String())
|
|
},
|
|
}
|