cmds

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFileName   string = "chronos.cue"
	SecretNamePrefix string = "services/bentest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CICmd

type CICmd struct {
	Artifact string   `short:"a" help:"Dump all produced artifacts to the given path."`
	Path     string   `arg:"" default:"" help:"The path to scan from."`
	Platform []string `short:"p" help:"Run the target with the given platform."`
}

func (*CICmd) Run

func (c *CICmd) Run(ctx run.RunContext) error

type DeployCmd

type DeployCmd struct {
	Project string `arg:"" help:"The path to the project to deploy."`
}

func (*DeployCmd) Run

func (c *DeployCmd) Run(ctx run.RunContext) error

type DumpCmd

type DumpCmd struct {
	Project string `arg:"" help:"Path to the project."`
	Pretty  bool   `help:"Pretty print JSON output."`
}

func (*DumpCmd) Run

func (c *DumpCmd) Run(ctx run.RunContext) error

type Get

type Get struct {
	Key      string `short:"k" help:"The key inside of the secret to get."`
	Project  string `help:"Path to a project to use for getting secret configuration."`
	Provider string `short:"p" help:"The provider of the secret store." default:"aws"`
	Path     string `arg:"" help:"The path to the secret (or path in a project blueprint if --project is specified)."`
}

func (*Get) Run

func (c *Get) Run(ctx run.RunContext) error

type GlobalArgs

type GlobalArgs struct {
	CI      bool `help:"Run in CI mode."`
	Local   bool `short:"l" help:"Forces all runs to happen locally (ignores any remote satellites)."`
	Verbose int  `short:"v" type:"counter" help:"Enable verbose logging."`
}

type ReleaseCmd added in v0.3.0

type ReleaseCmd struct {
	Force   bool   `short:"f" help:"Force the release to run."`
	Project string `arg:"" help:"Path to the project."`
	Release string `arg:"" help:"Name of the release."`
}

func (*ReleaseCmd) Run added in v0.3.0

func (c *ReleaseCmd) Run(ctx run.RunContext) error

type RunCmd

type RunCmd struct {
	Artifact   string   `short:"a" help:"Dump all produced artifacts to the given path."`
	Path       string   `arg:"" help:"The path to the target to execute (i.e., ./dir1+test)."`
	Platform   []string `short:"p" help:"Run the target with the given platform."`
	Pretty     bool     `help:"Pretty print JSON output."`
	TargetArgs []string `arg:"" help:"Arguments to pass to the target." default:""`
}

func (*RunCmd) Run

func (c *RunCmd) Run(ctx run.RunContext) error

type ScanCmd

type ScanCmd struct {
	Absolute  bool     `short:"a" help:"Output absolute paths."`
	Blueprint bool     `help:"Return the blueprint for each project."`
	Earthfile bool     `help:"Return the Earthfile targets for each project."`
	Filter    []string `short:"f" help:"Filter Earthfile targets by regular expression or blueprint results by path."`
	Pretty    bool     `help:"Pretty print JSON output."`
	RootPath  string   `arg:"" help:"Root path to scan for Earthfiles and their respective targets."`
}

func (*ScanCmd) Run

func (c *ScanCmd) Run(ctx run.RunContext) error

type SecretCmd

type SecretCmd struct {
	Get *Get `cmd:"" help:"Get a secret."`
	Set *Set `cmd:"" help:"Set a secret."`
}

type Set

type Set struct {
	Field    []string `short:"f" help:"A secret field to set."`
	Provider string   `short:"p" help:"The provider of the secret store." default:"aws"`
	Path     string   `arg:"" help:"The path to the secret (or path in a project blueprint if --project is specified)."`
	Project  string   `help:"Path to a project to use for getting secret configuration."`
	Value    string   `arg:"" help:"The value to set." default:""`
}

func (*Set) Run

func (c *Set) Run(ctx run.RunContext) error

type TagCmd

type TagCmd struct {
	Pretty  bool   `short:"p" help:"Pretty print JSON output."`
	Project string `arg:"" help:"The project to generate tags for."`
	Trim    bool   `short:"t" help:"Trim the project path from the git tag."`
}

func (*TagCmd) Run

func (c *TagCmd) Run(ctx run.RunContext) error

type TagOutput

type TagOutput struct {
	Generated string `json:"generated"`
	Git       string `json:"git"`
}

type ValidateCmd

type ValidateCmd struct {
	Project string `arg:"" help:"Path to the project."`
}

func (*ValidateCmd) Run

func (c *ValidateCmd) Run(ctx run.RunContext) error

Jump to

Keyboard shortcuts

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