mirror of
https://github.com/RGBCube/hjem
synced 2025-10-13 13:12:16 +00:00
modules/common: add manifest v1 CUE file for validation
This commit is contained in:
parent
df0ba737f0
commit
66862f83c0
1 changed files with 31 additions and 0 deletions
31
manifest/v1.cue
Normal file
31
manifest/v1.cue
Normal file
|
@ -0,0 +1,31 @@
|
|||
#path_string: string & =~ "^/"
|
||||
#file_string: #path_string & =~ "[^/]$"
|
||||
#octal_string: string & =~ "^[0-7]{3,4}$"
|
||||
|
||||
#HjemFile: {
|
||||
type!: string
|
||||
source?: #path_string
|
||||
target!: #path_string
|
||||
clobber?: bool
|
||||
permissions?: #octal_string
|
||||
uid?: int & >=0
|
||||
gid?: int & >=0
|
||||
deactivate?: bool
|
||||
} & ({
|
||||
type: "copy"
|
||||
target!: #file_string
|
||||
source!: #file_string
|
||||
...
|
||||
} | {
|
||||
type: "symlink"
|
||||
source!: _
|
||||
...
|
||||
} | {
|
||||
type: "delete" | "directory" | "modify"
|
||||
...
|
||||
})
|
||||
|
||||
{
|
||||
version: 1
|
||||
files: [...#HjemFile]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue