Add default value to permissions to #WriteFile

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Vasek - Tom C 2021-12-23 15:54:38 +01:00
parent 0e5fb4ec29
commit 513638a40b
No known key found for this signature in database
GPG Key ID: 175D82E572427960
2 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ package engine
// Contents to write // Contents to write
contents: string contents: string
// Permissions of the file // Permissions of the file
permissions: int permissions: *0o600 | int
// Output filesystem tree // Output filesystem tree
output: #FS output: #FS
} }

View File

@ -7,10 +7,10 @@ engine.#Plan & {
scratch: engine.#Scratch scratch: engine.#Scratch
data: engine.#WriteFile & { data: engine.#WriteFile & {
input: scratch.output input: scratch.output
path: "/test" path: "/test"
mode: 0o600 permissions: 0o600
contents: "foobar" contents: "foobar"
} }
} }