cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 = "app-migration-cli"

	// CommandShort describes the command in a short list
	CommandShort = "A Giantswarm tool to migrate apps between MCs"

	// CommandLong documents the command in full length
	CommandLong = `Migrate apps.application.giantswarm.io between two MCs`
)

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 root command.

func (*Command) CobraCommand

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

CobraCommand returns the spf13/cobra command

func (*Command) Execute

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

Execute is called to actuall run the main command

type Config

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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