con / duct

A helper to run a command, capture stdout/stderr and details about running
MIT License
1 stars 1 forks source link

Make fields lower-case #67

Closed yarikoptic closed 2 weeks ago

yarikoptic commented 2 weeks ago

to avoid necessity of knowledge on which are Camel which are not. ATM it is a mix:

$ jq . < .duct/logs/2024.06.09T14.34.52-2325510_info.json
{
  "Command": "singularity run -B /mnt/DATA/data/yoh/1076_spacetop:/mnt/DATA/data/yoh/1076_spacetop:ro -B /mnt/DATA/data/yoh/1076_spacetop/derivatives:/mnt/DATA/data/yoh/1076_spacetop/derivatives:rw -B /mnt/DATA/data/yoh/1076_spacetop/scratch:/mnt/DATA/data/yoh/1076_spacetop/scratch:rw -B /mnt/DATA/data/yoh/1076_spacetop/../dsst-defacing-pipeline/src:/opt/dsst-defacing-pipeline:ro --scratch /mnt/DATA/data/yoh/1076_spacetop/scratch --pwd /mnt/DATA/data/yoh/1076_spacetop --net --network none ../dsst-defacing-pipeline/dsst-defacing-pipeline-0.0.5.sif -- . derivatives/dss-defacing-0.0.5-1",
  "System": {
    "uid": "yoh",
    "memory_total": 1081801523200,
    "cpu_total": 32
  },
  "ENV": [
    {}
  ],
  "GPU": []
}

Just make them all lower case, i.e. "command", "system", "env", "gpu"