ledo/app/cmd/docker/fqn.go

23 lines
485 B
Go
Raw Normal View History

2021-10-21 00:51:32 +00:00
package docker
import (
"fmt"
"github.com/urfave/cli/v2"
"ledo/app/modules/compose"
"ledo/app/modules/context"
)
var CmdDockerFqn = cli.Command{
Name: "fqn",
Aliases: []string{"f"},
Usage: "Docker image fqn",
Description: `Get fqn docker image defined as main service in config file`,
Action: RunDockerFqn,
}
func RunDockerFqn(cmd *cli.Context) error {
ctx := context.InitCommand(cmd)
fmt.Printf("%v", compose.ShowDockerImageFQN(ctx))
return nil
}