1
Fork 0
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:
éclairevoyant 2025-01-23 00:59:45 -05:00
parent df0ba737f0
commit 66862f83c0
No known key found for this signature in database
GPG key ID: E3813AEAA02DB54B

31
manifest/v1.cue Normal file
View 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]
}