init
This commit is contained in:
commit
e7fa12d6f3
6 changed files with 688 additions and 0 deletions
31
v1.cue
Normal file
31
v1.cue
Normal file
|
@ -0,0 +1,31 @@
|
|||
#path_string: string & =~ "^/"
|
||||
#file_string: #path_string & =~ "[^/]$"
|
||||
#octal_string: string & =~ "^[0-7]{3,4}$"
|
||||
|
||||
#ArbysFile: {
|
||||
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: [...#ArbysFile]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue