On Sat, Jan 16, 2021 at 02:51:24PM +0800, Wei Jihui wrote:
[usage]
- submit -i include.yaml job.yaml
this will add include.yaml content to job.yaml, and priority is higher than job.yaml 2. submit -i 1.yaml -i 2.yaml job.yaml this will add 1.yaml and 2.yaml to job.yaml
Is it possible to make it position aware?
$ submit -i 1.yaml -i 2.yaml job.yaml => load 1.yaml load 2.yaml load job.yaml
vars in job.yaml can overwrite 1.yaml and 2.yaml
$ submit -i 1.yaml job.yaml -i 2.yaml => load 1.yaml load job.yaml load 2.yaml
vars in job.yaml can only overwrite 1.yaml vars in 2.yaml can overwrite job.yaml and 2.yaml
Similarly:
$ submit k1=v1 job.yaml k2=v2 => load k1=v1 # defaults load job.yaml load k2=v2 # overrides
Thanks, Fengguang