clean up hello world

This commit is contained in:
Stuart Axelbrooke 2025-04-17 16:12:55 -07:00
parent 4e21624ac3
commit 15d98db3ca
No known key found for this signature in database
GPG key ID: 1B0A848C29D46A35
3 changed files with 24 additions and 6 deletions

View file

@ -26,7 +26,7 @@
"JobConfig": {
"type": "object",
"required": ["outputs", "inputs", "executable"],
"required": ["outputs", "inputs","args","env"],
"properties": {
"outputs": {
"type": "array",
@ -47,10 +47,6 @@
"type": "object",
"additionalProperties": { "type": "string" },
"description": "Environment variables"
},
"executable": {
"type": "string",
"description": "Path to executable that will be run"
}
}
},

View file

@ -0,0 +1,22 @@
# Hello World
Demonstrates a simple parameterized job.
## Configure
```bash
$ bazel run //:test_job.cfg test_output
{"outputs":["test_output"],"inputs":[],"args":["will", "build", "test_output"],"env":{"foo":"bar"}}
```
## Execute
Doesn't actually write an output.
```bash
$ bazel run //:test_job.cfg test_output | bazel run //:test_job
EXECUTE!
foo=bar
args=will build test_output
```

View file

@ -1,2 +1,2 @@
# Create a test job config
echo "{\"outputs\":[\"$1\"],\"inputs\":[],\"args\":[\"arg1\", \"arg2\"],\"env\":{\"foo\":\"bar\"},\"executable\":\"TODO\"}"
echo "{\"outputs\":[\"$1\"],\"inputs\":[],\"args\":[\"will\", \"build\", \"$1\"],\"env\":{\"foo\":\"bar\"}}"