ledo/app/cmd/image/fqn.go

23 lines
482 B
Go
Raw Permalink Normal View History

2021-12-01 13:36:35 +00:00
package image
2021-10-21 00:51:32 +00:00
import (
"fmt"
"github.com/urfave/cli/v2"
2021-12-01 13:36:35 +00:00
"ledo/app/modules/docker"
2021-10-21 00:51:32 +00:00
"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)
2021-12-01 13:36:35 +00:00
fmt.Printf("%v", docker.ShowDockerImageFQN(ctx))
2021-10-21 00:51:32 +00:00
return nil
}