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

Function newWipeCommand

commands/wipe.go:9–20  ·  view source on GitHub ↗
(env *execenv.Env)

Source from the content-addressed store, hash-verified

7)
8
9func newWipeCommand(env *execenv.Env) *cobra.Command {
10 cmd := &cobra.Command{
11 Use: "wipe",
12 Short: "Wipe git-bug from the git repository",
13 PreRunE: execenv.LoadBackend(env),
14 RunE: func(cmd *cobra.Command, args []string) error {
15 return runWipe(env)
16 },
17 }
18
19 return cmd
20}
21
22func runWipe(env *execenv.Env) error {
23 env.Out.Println("cleaning entities...")

Callers 1

NewRootCommandFunction · 0.85

Calls 2

LoadBackendFunction · 0.92
runWipeFunction · 0.85

Tested by

no test coverage detected