Documentation ¶
Index ¶
- Variables
- func CleanRun(args []string) (err error)
- func GetRun(module string) (err error)
- func InitRun(module string) (err error)
- func LinkRun(args []string) (err error)
- func PublishRun(module string) (err error)
- func TidyRun(args []string) (err error)
- func VendorRun(args []string) (err error)
- func VerifyRun(args []string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CleanCmd = &cobra.Command{ Use: "clean", Short: "clean hof's module cache", Long: cleanLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = CleanRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var GetCmd = &cobra.Command{ Use: "get <module>", Short: "add a new dependency to the current module", Long: getLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error if 0 >= len(args) { fmt.Println("missing required argument: 'module'") cmd.Usage() os.Exit(1) } var module string if 0 < len(args) { module = args[0] } err = GetRun(module) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var InitCmd = &cobra.Command{ Use: "init <module>", Short: "initialize a new module in the current directory", Long: initLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error if 0 >= len(args) { fmt.Println("missing required argument: 'module'") cmd.Usage() os.Exit(1) } var module string if 0 < len(args) { module = args[0] } err = InitRun(module) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var LinkCmd = &cobra.Command{ Use: "link", Short: "symlink dependencies to cue.mod/pkg", Long: linkLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = LinkRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var PublishCmd = &cobra.Command{ Use: "publish <module>", Short: "publish a module", Long: publishLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error if 0 >= len(args) { fmt.Println("missing required argument: 'module'") cmd.Usage() os.Exit(1) } var module string if 0 < len(args) { module = args[0] } err = PublishRun(module) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var TidyCmd = &cobra.Command{ Use: "tidy", Short: "recalculate dependencies and update mod files", Long: tidyLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = TidyRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
Functions ¶
func PublishRun ¶ added in v0.6.8
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.