all repos — searchix @ 702a8aacb9acd37cffef6b7f415deb72954a6f49

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: rename option fields to avoid sql database quoting

Alan Pearce
commit

702a8aacb9acd37cffef6b7f415deb72954a6f49

parent

495994761bc04fd9b46e65e389e8b2cda28f1020

1 file changed, 4 insertions(+), 4 deletions(-)

changed files
M internal/nix/option.gointernal/nix/option.go
@@ -11,8 +11,8 @@ )
type Markdown string -type Value struct { - Text string `json:",omitempty"` +type Docs struct { + Plain string `json:",omitempty"` Markdown Markdown `json:",omitempty"` }
@@ -25,9 +25,9 @@ type Option struct {
Name string Source string Declarations []Link - Default *Value `json:",omitempty"` + Default *Docs `json:",omitempty"` Description Markdown - Example *Value `json:",omitempty"` + Example *Docs `json:",omitempty"` Loc []string RelatedPackages Markdown `json:",omitempty"` Type string