MCPcopy Index your code
hub / github.com/git-bug/git-bug / newPullCommand

Function newPullCommand

commands/pull.go:13–25  ·  view source on GitHub ↗
(env *execenv.Env)

Source from the content-addressed store, hash-verified

11)
12
13func newPullCommand(env *execenv.Env) *cobra.Command {
14 cmd := &cobra.Command{
15 Use: "pull [REMOTE]",
16 Short: "Pull updates from a git remote",
17 PreRunE: execenv.LoadBackend(env),
18 RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error {
19 return runPull(env, args)
20 }),
21 ValidArgsFunction: completion.GitRemote(env),
22 }
23
24 return cmd
25}
26
27func runPull(env *execenv.Env, args []string) error {
28 if len(args) > 1 {

Callers 1

NewRootCommandFunction · 0.85

Calls 4

LoadBackendFunction · 0.92
CloseBackendFunction · 0.92
GitRemoteFunction · 0.92
runPullFunction · 0.85

Tested by

no test coverage detected