diff options
Diffstat (limited to 'rui.go')
| -rw-r--r-- | rui.go | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -11,10 +11,11 @@ import ( ) type Configuration struct { - Notify bool `json:"notify"` - Editor string `json:"editor"` - Flake string `json:"flake"` - Notifier string `json:"notifier"` + Notify bool `json:"notify"` + Editor string `json:"editor"` + Flake string `json:"flake"` + Notifier string `json:"notifier"` + AllowUnfree bool `json:"allow-unfree"` } type ActionDetails struct { @@ -116,6 +117,13 @@ func main() { }, }, }, + Before: func(c *cli.Context) error { + if configuration.AllowUnfree { + c.Set("allow-unfree", "1") + } + + return nil + }, Commands: []*cli.Command{ { Name: "hs", |