summaryrefslogtreecommitdiff
path: root/termshare/cmd/version.go
blob: bc529ccc9ebd7feaed6b6e37a175a27dd4f50b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package cmd

import (
    "fmt"

	"github.com/spf13/cobra"
)

func init() {
    rootCmd.AddCommand(versionCmd)
}

func run(cmd *cobra.Command, args []string) {
    fmt.Println("0.0.1")
}

var versionCmd = &cobra.Command{
    Use: "version",
    Short: "Print the version of termshare",
    Long: "This is the version of the termshare command",
    Run: func(cmd *cobra.Command, args []string) {
        fmt.Println("0.0.1")
    },
}