mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
readme tweaks
This commit is contained in:
parent
362f73b7e0
commit
65d4d5d83c
2 changed files with 9 additions and 6 deletions
13
README.md
13
README.md
|
|
@ -381,11 +381,14 @@ complex tests are setting up more complex instances.
|
|||
|
||||
A script contains of 3 paths
|
||||
|
||||
1. An optional shebang line setting `haze` as the interperter, e.g.
|
||||
`#! /usr/bin/env haze`
|
||||
1. An optional shebang line setting `haze` as the interpreter, e.g.
|
||||
`#! /usr/bin/env -S haze script`
|
||||
2. A shebang line setting the options for the instance creation as the
|
||||
interperter, e.g. `#! haze shell pgsql s3`
|
||||
3. The rest that is ran as a script inside the created instace.
|
||||
interpreter, e.g. `#! haze shell pgsql s3`
|
||||
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
|
||||
`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.
|
||||
|
||||
```bash
|
||||
#! /usr/bin/env haze script
|
||||
#! #! /usr/bin/env -S haze script
|
||||
#! haze shell pgsql s3
|
||||
|
||||
echo 'test' | occ file:put '-' /admin/files/test.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue