MCPcopy
hub / github.com/etcd-io/bbolt / NewRootCommand

Function NewRootCommand

cmd/bbolt/command/command_root.go:12–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func NewRootCommand() *cobra.Command {
13 rootCmd := &cobra.Command{
14 Use: cliName,
15 Short: cliDescription,
16 Version: "dev",
17 }
18
19 rootCmd.AddCommand(
20 newVersionCommand(),
21 newSurgeryCommand(),
22 newInspectCommand(),
23 newCheckCommand(),
24 newBucketsCommand(),
25 newInfoCommand(),
26 newCompactCommand(),
27 newStatsCommand(),
28 newPagesCommand(),
29 newKeysCommand(),
30 newDumpCommand(),
31 newPageItemCommand(),
32 newPageCommand(),
33 newBenchCommand(),
34 newGetCommand(),
35 )
36
37 return rootCmd
38}

Callers 15

mainFunction · 0.92
TestKeysCommand_RunFunction · 0.92
TestKeyCommand_NoArgsFunction · 0.92
TestInfoCommand_RunFunction · 0.92
TestInfoCommand_NoArgsFunction · 0.92
TestSurgery_Meta_UpdateFunction · 0.92
TestPageCommand_RunFunction · 0.92
TestPageCommand_NoArgsFunction · 0.92
TestSurgery_CopyPageFunction · 0.92

Calls 15

newVersionCommandFunction · 0.85
newSurgeryCommandFunction · 0.85
newInspectCommandFunction · 0.85
newCheckCommandFunction · 0.85
newBucketsCommandFunction · 0.85
newInfoCommandFunction · 0.85
newCompactCommandFunction · 0.85
newStatsCommandFunction · 0.85
newPagesCommandFunction · 0.85
newKeysCommandFunction · 0.85
newDumpCommandFunction · 0.85
newPageItemCommandFunction · 0.85

Tested by 15

TestKeysCommand_RunFunction · 0.74
TestKeyCommand_NoArgsFunction · 0.74
TestInfoCommand_RunFunction · 0.74
TestInfoCommand_NoArgsFunction · 0.74
TestSurgery_Meta_UpdateFunction · 0.74
TestPageCommand_RunFunction · 0.74
TestPageCommand_NoArgsFunction · 0.74
TestSurgery_CopyPageFunction · 0.74
TestSurgery_ClearPageFunction · 0.74