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