-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
providers_lock.go
29 lines (23 loc) · 994 Bytes
/
providers_lock.go
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
26
27
28
29
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var providers_lockCmd = &cobra.Command{
Use: "lock",
Short: "Write out dependency locks for the configured provide",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(providers_lockCmd).Standalone()
providers_lockCmd.Flags().StringS("fs-mirror", "fs-mirror", "", "Consult the given filesystem mirror directory")
providers_lockCmd.Flags().StringS("net-mirror", "net-mirror", "", "Consult the given network mirror")
providers_lockCmd.Flags().StringS("platform", "platform", "", "Choose a target platform to request package checksums for")
providersCmd.AddCommand(providers_lockCmd)
providers_lockCmd.Flag("fs-mirror").NoOptDefVal = " "
providers_lockCmd.Flag("net-mirror").NoOptDefVal = " "
providers_lockCmd.Flag("platform").NoOptDefVal = " "
carapace.Gen(providers_lockCmd).FlagCompletion(carapace.ActionMap{
"fs-mirror": carapace.ActionDirectories(),
})
}