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

Function newBridgePushCommand

commands/bridge/bridge_push.go:18–31  ·  view source on GitHub ↗
(env *execenv.Env)

Source from the content-addressed store, hash-verified

16)
17
18func 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
33func runBridgePush(env *execenv.Env, args []string) error {
34 var b *core.Bridge

Callers 1

NewBridgeCommandFunction · 0.85

Calls 4

LoadBackendEnsureUserFunction · 0.92
CloseBackendFunction · 0.92
BridgeFunction · 0.92
runBridgePushFunction · 0.85

Tested by

no test coverage detected