Skip to content

Commit

Permalink
root cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
lingrino committed Jun 1, 2018
1 parent bac6483 commit 279338f
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 4 deletions.
26 changes: 22 additions & 4 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
[prune]
go-tests = true
unused-packages = true

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.3"
26 changes: 26 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package cmd

import (
"fmt"
"os"

"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
Use: "vaku",
Short: "Vaku CLI extends the official Vault CLI with useful high-level functions",
Long: `Vaku CLI extends the official Vault CLI with useful high-level functions
Built by Sean Lingren <[email protected]>
CLI documentation is available using --help
API documentation is available at https://godoc.org/github.com/Lingrino/vaku/vaku`,
}

// Execute initializes and runs the vaku command
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"github.com/Lingrino/vaku/cmd"
)

func main() {
cmd.Execute()
}

0 comments on commit 279338f

Please sign in to comment.