mirror of
https://github.com/Luzifer/password.git
synced 2024-11-14 04:02:46 +00:00
23 lines
376 B
Go
23 lines
376 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
func getCmdVersion() *cobra.Command {
|
||
|
cmd := cobra.Command{
|
||
|
Use: "version",
|
||
|
Aliases: []string{"v"},
|
||
|
Short: "prints the current version of awsenv",
|
||
|
Run: actionCmdVersion,
|
||
|
}
|
||
|
|
||
|
return &cmd
|
||
|
}
|
||
|
|
||
|
func actionCmdVersion(cmd *cobra.Command, args []string) {
|
||
|
fmt.Printf("password version %s\n", version)
|
||
|
}
|