(env *execenv.Env)
| 16 | ) |
| 17 | |
| 18 | func newBridgePushCommand(env *execenv.Env) *cobra.Command { |
| 19 | cmd := &cobra.Command{ |
| 20 | Use: "push [NAME]", |
| 21 | Short: "Push updates to remote bug tracker", |
| 22 | PreRunE: execenv.LoadBackendEnsureUser(env), |
| 23 | RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error { |
| 24 | return runBridgePush(env, args) |
| 25 | }), |
| 26 | Args: cobra.MaximumNArgs(1), |
| 27 | ValidArgsFunction: completion.Bridge(env), |
| 28 | } |
| 29 | |
| 30 | return cmd |
| 31 | } |
| 32 | |
| 33 | func runBridgePush(env *execenv.Env, args []string) error { |
| 34 | var b *core.Bridge |
no test coverage detected