Skip to content

Commit

Permalink
feat: add command to print bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrgl committed Jul 23, 2022
1 parent 1b559d9 commit 4dd3e80
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cmd/bin.go
@@ -0,0 +1,21 @@
package cmd

import (
"fmt"

"github.com/spf13/cobra"
)

var (
binCmd = &cobra.Command{
Use: "bin",
Short: "Print the path to the binaries directory",
Run: func(cmd *cobra.Command, args []string) {
fmt.Print(binariesDir(""))
},
}
)

func init() {
rootCmd.AddCommand(binCmd)
}

0 comments on commit 4dd3e80

Please sign in to comment.