project

package
v0.0.0-...-4e27ce1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidFlags

func IsInvalidFlags(err error) bool

IsInvalidFlags asserts invalidFlagsError.

Types

type Command

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

func New

func New(config Config) (*Command, error)

New creates a new configured draughtsman command.

func (*Command) CobraCommand

func (c *Command) CobraCommand() *cobra.Command

func (*Command) Execute

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

type Config

type Config struct {
	// Dependencies.
	Logger micrologger.Logger
}

Config represents the configuration used to create a new draughtsman command.

type Flags

type Flags struct {
	AZDVOToken string
	AZDVOUser  string
	// contains filtered or unexported fields
}

Flags represents flags used by command.

func (*Flags) Validate

func (f *Flags) Validate() error

Validate will check flags correctness.

Jump to

Keyboard shortcuts

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