command

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2021 VMware, Inc. SPDX-License-Identifier: MIT

Copyright 2021 VMware, Inc. SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

type Root

type Root struct {
	Options Options
	Command *cobra.Command
}

func New

func New() *Root

func (*Root) AddCommands

func (r *Root) AddCommands()

func (*Root) Execute

func (r *Root) 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 (*Root) GenerateCommand

func (r *Root) GenerateCommand() *cobra.Command

GenerateCommand creates the generate subcommand.

func (Root) NewCommand

func (r Root) NewCommand() *cobra.Command

Jump to

Keyboard shortcuts

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