Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.0.0-...-0439c77 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func PreRunSection

func PreRunSection(cmd *cobra.Command, args []string)

func RunSection

func RunSection(cmd *cobra.Command, args []string)

func SetSections

func SetSections()

Types

type CliConfig

type CliConfig struct {
	Host     string
	Sections map[string]Section
}

func ReadCommands

func ReadCommands() CliConfig

type Section

type Section struct {
	Name        string
	CommandName string
	SubSections map[string]SubSection
}

type SubSection

type SubSection struct {
	Name        string
	CommandName string
	Link        string
	FormLink    string
}

Jump to

Keyboard shortcuts

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