forked from privateerproj/privateer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.go
More file actions
25 lines (21 loc) · 688 Bytes
/
install.go
File metadata and controls
25 lines (21 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
// installCmd represents the version command
var installCmd = &cobra.Command{
Use: "equip",
Short: "Stock the Armory! Install plugins that are not supported by default.",
Run: func(cmd *cobra.Command, args []string) {
// This command will be a bit more complex,
// as it will require some type of validation that
// the specified project is compatible with Privateer
fmt.Print("equip called")
},
}
func init() {
installCmd.PersistentFlags().BoolP("store", "s", false, "Github repo to source the plugin from")
_ = viper.BindPFlag("store", installCmd.PersistentFlags().Lookup("store"))
}