Codevault initial commit
This commit is contained in:
23
cmd/root.go
Normal file
23
cmd/root.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/kanootoko/codevault/internal"
|
||||
)
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "codevault",
|
||||
Short: "CodeVault - store and retrieve secrets by access code",
|
||||
Long: `CodeVault is a small HTTP service that stores string values under access codes.`,
|
||||
SilenceUsage: true,
|
||||
Version: internal.Version,
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user