root

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd initialize the root command

Types

type Flags

type Flags struct {
	ConfigPath string
}

Flags contains all root command flags

func NewRootFlags

func NewRootFlags() *Flags

NewRootFlags initialize root command flags. It returns a RootFlags struct

type RootCmd

type RootCmd struct {
	Command *cobra.Command
	Flags   *Flags
}

RootCmd struct represents the root command object

func (*RootCmd) ApplyFlags

func (cmd *RootCmd) ApplyFlags()

ApplyFlags apply RootFlags to provided command

Jump to

Keyboard shortcuts

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