root_cmd

package
v0.0.0-...-0714061 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreAllErrors = InitOpts{
	SkipScDirCreation:    true,
	IgnoreConfigDirError: true,
	ReturnOnGitError:     true,
}

Functions

func RegisterDeployFlags

func RegisterDeployFlags(cmd *cobra.Command, p *api.DeployParams)

func RegisterStackFlags

func RegisterStackFlags(cmd *cobra.Command, p *api.StackParams, persistent bool)

Types

type InitOpts

type InitOpts struct {
	SkipScDirCreation    bool
	IgnoreConfigDirError bool
	ReturnOnGitError     bool
}

type Params

type Params struct {
	Verbose bool
	Silent  bool
	Profile string

	PreviewTimeout *string
	DeployTimeout  *string

	api.InitParams
	IsCanceled *atomic.Bool
	CancelFunc func()
}

type RootCmd

type RootCmd struct {
	*Params

	GitRepo     git.Repo
	Logger      logger.Logger
	Provisioner provisioner.Provisioner
}

func (*RootCmd) Init

func (c *RootCmd) Init(opts InitOpts) error

Jump to

Keyboard shortcuts

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