Home

ugit @b1f33fc696f9209a1f61eacef5abcdcde2b1cd16 - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
ugit / cmd / ugitd / schema.cue
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#Port: int & >0 & <65536

#LogLevel: "debug" | "info" | "warn" | "warning" | "error"

#SSHArgs: {
	enable?:            bool
	"authorized-keys"?: string
	"clone-url"?:       string
	port?:              #Port
	"host-key"?:        string
}

#HTTPArgs: {
	enable?:      bool
	"clone-url"?: string
	port?:        #Port
}

#MetaArgs: {
	title?:       string
	description?: string
}

#ProfileArgs: {
	username?: string
	email?:    string
	links?: [...string]
}

#LogArgs: {
	level?: #LogLevel
	json?:  bool
}

#Schema: {
	"repo-dir"?:     string
	"show-private"?: bool
	ssh?:            #SSHArgs
	http?:           #HTTPArgs
	meta?:           #MetaArgs
	profile?:        #ProfileArgs
	log?:            #LogArgs
}

#Schema