summaryrefslogtreecommitdiff
path: root/termshare/cmd/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'termshare/cmd/version.go')
-rw-r--r--termshare/cmd/version.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/termshare/cmd/version.go b/termshare/cmd/version.go
new file mode 100644
index 0000000..bc529cc
--- /dev/null
+++ b/termshare/cmd/version.go
@@ -0,0 +1,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")
+ },
+}