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:
@@ -2,6 +2,7 @@ package hst
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
@@ -161,6 +162,10 @@ type ContainerConfig struct {
|
||||
Flags Flags `json:"-"`
|
||||
}
|
||||
|
||||
func (c *ContainerConfig) GoString() string {
|
||||
return fmt.Sprintf("&%#v", *c)
|
||||
}
|
||||
|
||||
// ContainerConfigF is [ContainerConfig] stripped of its methods.
|
||||
//
|
||||
// The [ContainerConfig.Flags] field does not survive a [json] round trip.
|
||||
|
||||
Reference in New Issue
Block a user