Example #1
0
func port(c compose.Compose, cmd *cobra.Command, args []string) error {
	if len(args) != 2 {
		return PortInvalidArgs
	}
	index, _ := cmd.Flags().GetInt(INDEX_FLAG)
	proto, _ := cmd.Flags().GetString(PROTO_FLAG)

	return c.Port(index, proto, args[0], args[1])
}
Example #2
0
func up(c compose.Compose, cmd *cobra.Command, args []string) error {
	return c.Up(args...)
}
Example #3
0
func kill(c compose.Compose, cmd *cobra.Command, args []string) error {
	return c.Kill(args...)
}
Example #4
0
func start(c compose.Compose, cmd *cobra.Command, args []string) error {
	return c.Start(args...)
}
Example #5
0
func ps(c compose.Compose, cmd *cobra.Command, args []string) error {
	q, _ := cmd.Flags().GetBool(QUIET_FLAG)
	return c.PS(q)
}
Example #6
0
func delete(c compose.Compose, cmd *cobra.Command, args []string) error {
	return c.Delete(args...)
}
Example #7
0
func build(c compose.Compose, cmd *cobra.Command, args []string) error {
	return c.Build(args...)
}
Example #8
0
func logs(c compose.Compose, cmd *cobra.Command, args []string) error {
	return c.Logs(args...)
}