up

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "up [flags] [-- <args>, ...]",
	Short: "Try to run make up, docker-compose up, go run main.go",
	Run: func(c *cobra.Command, args []string) {
		if checkMakeUp() {
			fmt.Println("slu up: make up")
			exec_utils.ExecOut("make", append([]string{"up"}, args...)...)
		} else if checkDockerComposeUp() {
			fmt.Println("slu up: docker compose up")
			exec_utils.ExecOut("docker", append([]string{"compose", "up"}, args...)...)
		} else if checkGoRunMailGO() {
			fmt.Println("slu up: go run main.go")
			exec_utils.ExecOut("go", append([]string{"run", "main.go"}, args...)...)
		}
	},
}
View Source
var FlagJson bool

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