Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = app.Register(&app.Command[app.Empty, app.Empty]{ Use: "config", Desc: "Edit config file", Action: "Edit", RunNoContext: func() error { path := config.GetDir("config.toml") return app.Edit(path, config.DefaultConfig, "config.toml", func(s string) error { data := []byte(s) var cfg config.Config err := toml.Unmarshal(data, &cfg) return errors.Trace(err, "parse toml") }) }, })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.