aboutsummaryrefslogtreecommitdiff
path: root/rui.go
diff options
context:
space:
mode:
Diffstat (limited to 'rui.go')
-rw-r--r--rui.go16
1 files changed, 12 insertions, 4 deletions
diff --git a/rui.go b/rui.go
index ea261b7..c76870e 100644
--- a/rui.go
+++ b/rui.go
@@ -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",