func satCommand(config *config, runnable directive.Runnable) (string, string) {
	port, err := randPort()
	if err != nil {
		log.Fatal(errors.Wrap(err, "failed to randPort"))
	}

	var cmd string

	switch config.execMode {
	case "docker":
		cmd = fmt.Sprintf(
			"docker run --rm -p %s:%s -e SAT_HTTP_PORT=%s -e SAT_CONTROL_PLANE=docker.for.mac.localhost:9090 --network bridge suborbital/sat:%s sat %s",
			port, port, port,
			config.satTag,
			runnable.FQFN,
		)
	case "metal":
		cmd = fmt.Sprintf(
			"sat %s",
			runnable.FQFN,
		)
	default:
		cmd = "echo 'invalid exec mode'"
	}

	return cmd, port
}
// satCommand returns the command and the port string
satCommand returns the command and the port string
// satCommand returns the command and the port string
func satCommand(config *config, runnable directive.Runnable) (string, string) {
	port, err := randPort()
	if err != nil {
		log.Fatal(errors.Wrap(err, "failed to randPort"))
	}
	var cmd string
	switch config.execMode {
	case "docker":
		cmd = fmt.Sprintf(
			"docker run --rm -p %s:%s -e SAT_HTTP_PORT=%s -e SAT_CONTROL_PLANE=docker.for.mac.localhost:9090 --network bridge suborbital/sat:%s sat %s",
			port, port, port,
			config.satTag,
			runnable.FQFN,
		)
	case "metal":
		cmd = fmt.Sprintf(
			"sat %s",
			runnable.FQFN,
		)
	default:
		cmd = "echo 'invalid exec mode'"
	}
	return cmd, port
}
func satCommand ( config * config , runnable directive . Runnable ) ( string , string ) { port , err := randPort ( ) if err != nil { log . Fatal ( errors . Wrap ( err , " " ) ) } var cmd string switch config . execMode { case " " : cmd = fmt . Sprintf ( " " , port , port , port , config . satTag , runnable . FQFN , ) case " " : cmd = fmt . Sprintf ( " " , runnable . FQFN , ) default : cmd = " " } return cmd , port }
satCommand returns the command and the port string
satCommand returns the command and the port string