tools

package
v0.0.0-...-76ff1b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToolsCmd = &cobra.Command{
	Use:   "tools",
	Short: "Tools command",
	Long:  "Differents tools for Yugabyte developer",
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

ToolsCmd Differents tools for Yugabyte developer

View Source
var TreeCmd = &cobra.Command{
	Use:   "tree",
	Short: "Visualize the command tree",
	Long:  "Visualize the command structore of the CLI in tree format",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("yba")
		for i, cmd := range cmd.Root().Commands() {
			printCommandTree(cmd, "", i == len(cmd.Root().Commands())-1)
		}
	},
}

TreeCmd prints all commands in a tree format

Functions

func RemoveContents

func RemoveContents(dir string) error

RemoveContents function

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL