cmd

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 89 Imported by: 0

Documentation

Overview

Package cmd provides the Constellation CLI.

It is responsible for the interaction with the user.

Logic should be kept to input/output parsing whenever possible. Any more complex code should usually be implemented in one of the other CLI packages.

The code here should be kept as cloud provider agnostic as possible. Any CSP specific tasks should be handled by the "cloudcmd" package.

All filepaths handled by the CLI code should originate from here. Common filepaths are defined as constants in the global "/internal/constants" package. To generate workspace correct filepaths for printing, use the functions from the "workspace" package.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidInput = errors.New("user made invalid input")

ErrInvalidInput is an error where user entered invalid input.

Functions

func NewApplyCmd added in v2.13.0

func NewApplyCmd() *cobra.Command

NewApplyCmd creates the apply command.

func NewConfigCmd

func NewConfigCmd() *cobra.Command

NewConfigCmd creates a new config parent command. Config needs another verb, and does nothing on its own.

func NewCreateCmd

func NewCreateCmd() *cobra.Command

NewCreateCmd returns a new cobra.Command for the create command.

func NewIAMCmd added in v2.3.0

func NewIAMCmd() *cobra.Command

NewIAMCmd returns a new cobra.Command for the iam parent command. It needs another verb and does nothing on its own.

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd returns a new cobra.Command for the init command.

func NewMaaPatchCmd added in v2.13.0

func NewMaaPatchCmd() *cobra.Command

NewMaaPatchCmd returns a new cobra.Command for the maa-patch command.

func NewMiniCmd

func NewMiniCmd() *cobra.Command

NewMiniCmd creates a new cobra.Command for managing MiniConstellation clusters.

func NewRecoverCmd

func NewRecoverCmd() *cobra.Command

NewRecoverCmd returns a new cobra.Command for the recover command.

func NewStatusCmd added in v2.7.0

func NewStatusCmd() *cobra.Command

NewStatusCmd returns a new cobra.Command for the statuus command.

func NewTerminateCmd

func NewTerminateCmd() *cobra.Command

NewTerminateCmd returns a new cobra.Command for the terminate command.

func NewUpgradeCmd

func NewUpgradeCmd() *cobra.Command

NewUpgradeCmd returns a new cobra.Command for the upgrade command.

func NewVerifyCmd

func NewVerifyCmd() *cobra.Command

NewVerifyCmd returns a new cobra.Command for the verify command.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd returns a new cobra.Command for the verify command.

Types

This section is empty.

Directories

Path Synopsis
Package pathprefix is used to print correct filepaths for a configured workspace.
Package pathprefix is used to print correct filepaths for a configured workspace.

Jump to

Keyboard shortcuts

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