cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCoreDumpCommand added in v0.7.0

func NewCoreDumpCommand() *cobra.Command

NewCoreDumpCommand return command that start full process dump with createdump tool

func NewDocCommand added in v0.6.0

func NewDocCommand() *cobra.Command

NewDocCommand return command that generate tool docs from sources

func NewDumpCommand added in v0.6.0

func NewDumpCommand() *cobra.Command

NewDumpCommand return command that start dumper with dotnet-dump tool

func NewGCDumpCommand added in v0.6.0

func NewGCDumpCommand() *cobra.Command

NewGCDumpCommand return command that start dumper with dotnet-gcdump tool

func NewShovelCommand

func NewShovelCommand() *cobra.Command

NewShovelCommand initialize Shovel command

func NewTraceCommand added in v0.6.0

func NewTraceCommand() *cobra.Command

NewTraceCommand return command that start dumper with dotnet-trace tool

func NewVersionCommand added in v0.6.0

func NewVersionCommand() *cobra.Command

NewVersionCommand return command that returns plugin version

Types

type CommandBuilder added in v0.6.0

type CommandBuilder struct {
	CommonOptions *CommonOptions
	// contains filtered or unexported fields
}

CommandBuilder represents logic for building and running tools

func NewCommandBuilder added in v0.6.0

func NewCommandBuilder(factory flags.DotnetToolFactory) *CommandBuilder

NewCommandBuilder returns *CommandBuilder instance with specified factory flags.DotnetToolFactory that responsible for creation of any available flags.DotnetTool

func (*CommandBuilder) Build added in v0.6.0

func (cb *CommandBuilder) Build(short, long, example string) *cobra.Command

Build will build and returns *cobra.Command for specific tool

func (*CommandBuilder) Tool added in v0.6.0

func (cb *CommandBuilder) Tool() string

Tool returns tool name that contains CommandBuilder

type CommonOptions added in v0.6.0

type CommonOptions struct {
	Container         string
	Image             string
	Pod               string
	Output            string
	OutputHostPath    string
	StoreOutputOnHost bool
	// contains filtered or unexported fields
}

CommonOptions contains shared arguments for cli commands

func (*CommonOptions) GetFlags added in v0.6.0

func (options *CommonOptions) GetFlags() *pflag.FlagSet

GetFlags return FlagSet that describes generic options

Jump to

Keyboard shortcuts

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