INNER CODE UNIT · Go

mchs

container2wasm/container2wasm · cmd/init/main.go:459

			mchs := delimArgs.FindAllIndex([]byte(o), -1)
			prev := 0
			for _, m := range mchs {
				s := m[0] + 1
				// spaces are quoted so we restore them here
				info.args = append(info.args, strings.ReplaceAll(o[prev:s], "\\ ", " "))
				prev = m[1]
			}
			info.args = append(info.args, strings.ReplaceAll(o[prev:], "\\ ", " "))
		case "e":
			info.entrypoint = []string{o}
		case "env":
			info.env = append(info.env, o)
		case "n":
			info.withNet = true // TODO: check mode (e.g. dhcp, ...)
			info.mac = o
		case "t":
			if o != "" {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…