about summary refs log tree commit diff stats
path: root/internal/options/option.go
blob: a43dd49f2285964f2140e9a504c5ab2f7da969e5 (plain)
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
package options

type Markdown string

type NixValue struct {
	Text     string   `json:",omitempty"`
	Markdown Markdown `json:",omitempty"`
}

type Link struct {
	Name string
	URL  string
}

type NixOption struct {
	Option string

	Declarations    []Link
	Default         *NixValue `json:",omitempty"`
	Description     Markdown
	Example         *NixValue `json:",omitempty"`
	Loc             []string
	RelatedPackages Markdown `json:",omitempty"`
	Type            string
}

type NixOptions []NixOption