forked from rosa/hakurei
cmd/app: high-level app configuration syntax
This replaces the nixos module. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package hst
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
@@ -61,6 +62,10 @@ type BusConfig struct {
|
||||
Filter bool `json:"filter"`
|
||||
}
|
||||
|
||||
func (c *BusConfig) GoString() string {
|
||||
return fmt.Sprintf("&%#v", *c)
|
||||
}
|
||||
|
||||
// Interfaces iterates over all interface strings specified in [BusConfig].
|
||||
func (c *BusConfig) Interfaces(yield func(string) bool) {
|
||||
if c == nil {
|
||||
|
||||
Reference in New Issue
Block a user