MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / printServices

Function printServices

cli/cmd/start/vm.go:453–461  ·  view source on GitHub ↗

打印 service 列表

(services map[string]compose.Service)

Source from the content-addressed store, hash-verified

451
452// 打印 service 列表
453func printServices(services map[string]compose.Service) {
454 w := tabwriter.NewWriter(os.Stdout, 1, 1, 1, ' ', 0)
455 fmt.Fprintln(w, "Service\tImage\tPorts\t")
456 for serviceName, service := range services {
457 line := fmt.Sprintf("%v\t%v\t%v\t", serviceName, service.Image, strings.Join(service.Ports, ";"))
458 fmt.Fprintln(w, line)
459 }
460 w.Flush()
461}
462
463// docker-compose 对应的容器是否运行
464func isRemoteDockerComposeRunning(sshRemote common.SSHRemote, workingDir string, serviceNames []string) (isDockerComposeRunning bool, err error) {

Callers 1

ExecuteVmStartCmdFunction · 0.85

Calls 1

JoinMethod · 0.45

Tested by

no test coverage detected