(env *execenv.Env)
| 11 | ) |
| 12 | |
| 13 | func 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 | |
| 27 | func runPull(env *execenv.Env, args []string) error { |
| 28 | if len(args) > 1 { |
no test coverage detected