Skip to content

Commit

Permalink
feat: add version cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tobifroe committed Jul 15, 2024
1 parent 1eb56c5 commit 905fa76
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cmd/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"fmt"

"github.com/spf13/cobra"
)

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

var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of starscraper",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("starscraper v0.0.3")
},
}

0 comments on commit 905fa76

Please sign in to comment.