Documentation ¶
Index ¶
- Variables
- func BeforeAfterWrapper(f func(c *cli.Context)) func(c *cli.Context)
- func ConsumeLogs()
- func FilterServices(c *cli.Context) map[string]*services.Service
- func GetEnvForService(c *cli.Context, service *services.Service) []string
- func HasErrors() bool
- func LogsAction(c *cli.Context)
- func PsAction(c *cli.Context)
- func RestartAction(c *cli.Context)
- func ServicesBashComplete(c *cli.Context)
- func StartAction(c *cli.Context)
- func StopAction(c *cli.Context)
- func TailServiceLog(service *services.Service, wg *sync.WaitGroup)
- func TestAction(c *cli.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var LogsCommand = &cli.Command{ Name: "logs", Usage: "Aggregate services logs", Action: BeforeAfterWrapper(LogsAction), BashComplete: ServicesBashComplete, }
View Source
var PsCommand = &cli.Command{ Name: "ps", Usage: "Outputs the status of all services", Action: BeforeAfterWrapper(PsAction), }
View Source
var RestartCommand = &cli.Command{ Name: "restart", Usage: "Restarts all the services", Action: BeforeAfterWrapper(RestartAction), BashComplete: ServicesBashComplete, Flags: []cli.Flag{ cli.BoolFlag{ Name: "attach, a", Usage: "Attach to services output after start", }, cli.BoolFlag{ Name: "logs, l", Usage: "Start logging after start", }, }, }
View Source
var StartCommand = &cli.Command{ Name: "start", Usage: "Starts all the services", Action: BeforeAfterWrapper(StartAction), BashComplete: ServicesBashComplete, Flags: []cli.Flag{ cli.BoolFlag{ Name: "attach, a", Usage: "Attach to services output after start", }, cli.BoolFlag{ Name: "logs, l", Usage: "Start logging after start", }, }, }
View Source
var StopCommand = &cli.Command{ Name: "stop", Usage: "Stops all the services", Action: BeforeAfterWrapper(StopAction), BashComplete: ServicesBashComplete, }
View Source
var TestCommand = &cli.Command{ Name: "test", Usage: "Runs go test ./... for every service", Action: BeforeAfterWrapper(TestAction), BashComplete: ServicesBashComplete, Flags: []cli.Flag{ cli.BoolFlag{ Name: "verbose, v", }, cli.BoolFlag{ Name: "race, r", }, }, }
Functions ¶
func ConsumeLogs ¶
func ConsumeLogs()
func FilterServices ¶
This is temporary, very very alpha and may change soon
func GetEnvForService ¶
GetEnvForService returns all the environment variables for a given service including the ones specified in the global config
func LogsAction ¶
func RestartAction ¶
RestartAction restarts all the services (or the specified ones)
func ServicesBashComplete ¶
func StartAction ¶
StartAction starts all the services (or the specified ones)
func StopAction ¶
StopAction stops all the services (or the specified ones)
func TestAction ¶
StartAction starts all the services (or the specified ones)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.