WithProcessArgs replaces the args on the generated spec
(args ...string)
| 235 | |
| 236 | // WithProcessArgs replaces the args on the generated spec |
| 237 | func WithProcessArgs(args ...string) SpecOpts { |
| 238 | return func(_ context.Context, _ Client, _ *containers.Container, s *Spec) error { |
| 239 | setProcess(s) |
| 240 | s.Process.Args = args |
| 241 | s.Process.CommandLine = "" |
| 242 | return nil |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | // WithProcessCwd replaces the current working directory on the generated spec |
| 247 | func WithProcessCwd(cwd string) SpecOpts { |
searching dependent graphs…