24 lines
465 B
Go
24 lines
465 B
Go
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)
|
|
}
|
|
}
|