mirror of
https://github.com/sundowndev/phoneinfoga.git
synced 2026-11-04 12:04:37 +00:00
20 lines
353 B
Go
20 lines
353 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/spf13/cobra"
|
|
"github.com/sundowndev/phoneinfoga/v2/build"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print current version of the tool",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Printf("PhoneInfoga %s\n", build.String())
|
|
},
|
|
}
|