1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 16:54:08 +02:00

readme tweaks

This commit is contained in:
Robin Appelman 2026-08-17 19:37:20 +02:00
commit 65d4d5d83c
2 changed files with 9 additions and 6 deletions

View file

@ -381,11 +381,14 @@ complex tests are setting up more complex instances.
A script contains of 3 paths A script contains of 3 paths
1. An optional shebang line setting `haze` as the interperter, e.g. 1. An optional shebang line setting `haze` as the interpreter, e.g.
`#! /usr/bin/env haze` `#! /usr/bin/env -S haze script`
2. A shebang line setting the options for the instance creation as the 2. A shebang line setting the options for the instance creation as the
interperter, e.g. `#! haze shell pgsql s3` interpreter, e.g. `#! haze shell pgsql s3`
3. The rest that is ran as a script inside the created instace. 3. The rest that is ran as a script inside the created instance.
The first sheband is set, the script can be ran directly. Else it needs to be
run with `haze script [path-to-script]`.
For example, the following script will create an instance with `postgresql` and For example, the following script will create an instance with `postgresql` and
`s3` primary storage. Then creates a new file, gets the file id, read the object `s3` primary storage. Then creates a new file, gets the file id, read the object
@ -393,7 +396,7 @@ of the file from S3, validate that it contains the expected contents, and
cleanup the instance. cleanup the instance.
```bash ```bash
#! /usr/bin/env haze script #! #! /usr/bin/env -S haze script
#! haze shell pgsql s3 #! haze shell pgsql s3
echo 'test' | occ file:put '-' /admin/files/test.txt echo 'test' | occ file:put '-' /admin/files/test.txt

View file

@ -1,4 +1,4 @@
#! /usr/bin/env haze script #! /usr/bin/env -S haze script
#! haze shell pgsql s3 #! haze shell pgsql s3
echo 'test' | occ file:put '-' /admin/files/test.txt echo 'test' | occ file:put '-' /admin/files/test.txt