Skip to content

Commit d46e55a

Browse files
committed
chore(cmd/immuadmin): disable stats and removed print tree command
Signed-off-by: Michele Meloni <[email protected]>
1 parent 97f10cb commit d46e55a

File tree

4 files changed

+7
-153
lines changed

4 files changed

+7
-153
lines changed

cmd/immuadmin/command/commandline.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ func (cl *commandline) Register(rootCmd *cobra.Command) *cobra.Command {
9292
cl.stats(rootCmd)
9393
cl.serverConfig(rootCmd)
9494
cl.database(rootCmd)
95-
cl.printTree(rootCmd)
9695
return rootCmd
9796
}
9897

cmd/immuadmin/command/print_tree.go

Lines changed: 0 additions & 69 deletions
This file was deleted.

cmd/immuadmin/command/print_tree_test.go

Lines changed: 0 additions & 78 deletions
This file was deleted.

cmd/immuadmin/command/stats.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ func (cl *commandline) status(cmd *cobra.Command) {
4646

4747
func (cl *commandline) stats(cmd *cobra.Command) {
4848
ccmd := &cobra.Command{
49-
Use: "stats",
50-
Short: fmt.Sprintf("Show statistics as text or visually with the '-v' option. Run 'immuadmin stats -h' for details."),
51-
Aliases: []string{"s"},
52-
PersistentPreRunE: cl.ConfigChain(cl.connect),
53-
PersistentPostRun: cl.disconnect,
49+
Use: "stats",
50+
Short: fmt.Sprintf("Show statistics as text or visually with the '-v' option. Run 'immuadmin stats -h' for details."),
51+
Aliases: []string{"s"},
52+
/*PersistentPreRunE: cl.ConfigChain(cl.connect),
53+
PersistentPostRun: cl.disconnect,*/
5454
RunE: func(cmd *cobra.Command, args []string) error {
55+
fmt.Print("Not yet supported in v0.9.0\n")
56+
return nil
5557
raw, err := cmd.Flags().GetBool("raw")
5658
if err != nil {
5759
c.QuitToStdErr(err)

0 commit comments

Comments
 (0)