mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 09:51:39 +00:00
25 lines
479 B
Go
25 lines
479 B
Go
package main
|
|
|
|
import (
|
|
"github.com/onsonr/hway/pkg/vault"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func main() {
|
|
if err := serveCmd().Execute(); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
func serveCmd() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "vltd",
|
|
Aliases: []string{"vault"},
|
|
Short: "run the vault rest api and htmx frontend",
|
|
DisableFlagParsing: false,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
vault.Serve(cmd.Context())
|
|
},
|
|
}
|
|
}
|