cmd

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdAutocomplete = cli.Command{
	Name:        "shellcompletion",
	Aliases:     []string{"autocomplete"},
	Category:    catSetup,
	Usage:       "install shell completion",
	Description: "Install shell completion for ledo",
	ArgsUsage:   "<shell type> (bash, zsh, powershell, fish)",
	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name:  "install",
			Usage: "Persist in shell config instead of printing commands",
		},
	},
	Action: runAutocompleteAdd,
}

CmdAutocomplete manages autocompletion

View Source
var CmdContainer = cli.Command{
	Name:        "container",
	Aliases:     []string{"c", "docker", "d"},
	Category:    catHelpers,
	Usage:       "container helper",
	Description: `Manage compose tools (docker or podman) in project`,
	Subcommands: []*cli.Command{
		&container.CmdDockerPs,
		&container.CmdDockerUp,
		&container.CmdComposeBuild,
		&container.CmdComposeDebug,
		&container.CmdComposeDown,
		&container.CmdComposeLogs,
		&container.CmdComposeRestart,
		&container.CmdComposeRun,
		&container.CmdComposeExec,
		&container.CmdDockerRm,
		&container.CmdComposeShell,
		&container.CmdComposeStart,
		&container.CmdComposeUpOnce,
		&container.CmdComposePull,
		&container.CmdComposeStop,
		&container.CmdDockerLogin,
		&container.CmdPrune,
	},
	Before: func(cmd *cli.Context) error {
		ctx := context.InitCommand(cmd)
		if ctx.Config.Runtime == config.Docker {
			compose.CheckDockerComposeVersion()
		}

		if ctx.Config.Runtime == config.Podman {
			compose.CheckPodmanComposeVersion()
		}

		return nil
	},
}
View Source
var CmdImage = cli.Command{
	Name:        "image",
	Aliases:     []string{"i"},
	Category:    catHelpers,
	Usage:       "Docker/podman container helper",
	Description: `Docker/podman container helper`,
	Subcommands: []*cli.Command{
		&image.CmdDockerFqn,
		&image.CmdDockerPush,
		&image.CmdDockerRetag,
		&image.CmdDockerBuild,
	},
}
View Source
var CmdInit = cli.Command{
	Name:        "init",
	Category:    catSetup,
	Usage:       "init ledo in project",
	Description: `Initialize LeadDocker in current project`,
	Action:      runInitLedo,
}
View Source
var CmdMode = cli.Command{
	Name:        "mode",
	Aliases:     []string{"m"},
	Category:    catSetup,
	Usage:       "run mode management",
	Description: `Manage run mode`,
	Action:      runModeDefault,
	Subcommands: []*cli.Command{
		&mode.CmdModeSelect,
		&mode.CmdModeList,
	},
}
View Source
var CmdSecrets = cli.Command{
	Name:     "secrets",
	Aliases:  []string{"s"},
	Category: catHelpers,
	Usage:    "secrets helper",
	Description: `Managing secrets with hashicorp vault.

Requires a vault server with a KV2 resource prefixed /environment to function properly.

The vault path is created from project namespace, project name and selected mode. 

`,
	Subcommands: []*cli.Command{
		&secrets.CmdSecretsRead,
		&secrets.CmdSecretsWrite,
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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