preflight

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CommandUse indicates the general syntax of the command
	CommandUse = "preflight"

	// CommandShort describes the command in a short list
	CommandShort = "Check all prerequistes for a smooth app migration"

	// CommandLong documents the command in full length
	CommandLong = `` /* 273-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func New

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

New creates a new configured command.

func (*Command) CobraCommand

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

func (*Command) Execute

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

type Config

type Config struct {
	// Settings.
	MainCommand *cobra.Command
	Logger      micrologger.Logger
}

Config represents the configuration used to create a new command.

type Flags

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

Flags represents all the flags that can be set via the command line

func (*Flags) Validate

func (f *Flags) Validate() error

Jump to

Keyboard shortcuts

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