feat: init nightly vuls for blackhat

This commit is contained in:
MaineK00n
2022-11-15 11:26:26 +09:00
parent 1d97e91341
commit 3605645ff6
234 changed files with 6172 additions and 54872 deletions

View File

@@ -0,0 +1,25 @@
package version
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var (
Version string
Revision string
)
func NewCmdVersion() *cobra.Command {
cmd := &cobra.Command{
Use: "version",
Short: "Print the version",
Args: cobra.NoArgs,
Run: func(_ *cobra.Command, _ []string) {
fmt.Fprintf(os.Stdout, "vuls %s %s\n", Version, Revision)
},
}
return cmd
}