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