MCPcopy Index your code
hub / github.com/jetify-com/devbox / pushCmd

Function pushCmd

internal/boxcli/push.go:21–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func pushCmd() *cobra.Command {
22 flags := pushCmdFlags{}
23 cmd := &cobra.Command{
24 Use: "push <git-repo>",
25 Short: "Push a [global] config. Leave empty to use jetify cloud. Can " +
26 "be a git repo for self storage.",
27 Args: cobra.MaximumNArgs(1),
28 RunE: func(cmd *cobra.Command, args []string) error {
29 return pushCmdFunc(cmd, goutil.GetDefaulted(args, 0), flags)
30 },
31 }
32
33 flags.config.register(cmd)
34
35 return cmd
36}
37
38func pushCmdFunc(cmd *cobra.Command, url string, flags pushCmdFlags) error {
39 box, err := devbox.Open(&devopt.Opts{

Callers 1

globalCmdFunction · 0.85

Calls 3

GetDefaultedFunction · 0.92
pushCmdFuncFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected