env

package
v0.3.24-beta Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:                "env",
	Short:              "Controls an environment from any point within the root project directory",
	Long:               `Controls an environment from any point within the root project directory`,
	ValidArgsFunction:  core.DockerComposeCompleter(),
	DisableFlagParsing: true,
	PreRunE: func(cmd *cobra.Command, args []string) error {

		if !core.ContainsString([]string{args[0]}, "config") {
			if err := core.CheckDocker(); err != nil {
				return err
			}
		}

		if err := commands.EnvCheck(); err != nil {
			return err
		}

		return nil
	},
	RunE: func(cmd *cobra.Command, args []string) error {
		return commands.EnvCmd(args)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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