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]) }
func up(c compose.Compose, cmd *cobra.Command, args []string) error { return c.Up(args...) }
func kill(c compose.Compose, cmd *cobra.Command, args []string) error { return c.Kill(args...) }
func start(c compose.Compose, cmd *cobra.Command, args []string) error { return c.Start(args...) }
func ps(c compose.Compose, cmd *cobra.Command, args []string) error { q, _ := cmd.Flags().GetBool(QUIET_FLAG) return c.PS(q) }
func delete(c compose.Compose, cmd *cobra.Command, args []string) error { return c.Delete(args...) }
func build(c compose.Compose, cmd *cobra.Command, args []string) error { return c.Build(args...) }
func logs(c compose.Compose, cmd *cobra.Command, args []string) error { return c.Logs(args...) }