func NewDaemonCmd(ui clui.UI) clui.Command {
	c := &daemonCmd{
		ui:      ui,
		flagset: flagset.NewFlagSet("daemon", flag.ExitOnError),
	}
	c.init()
	return c
}
NewDaemonCmd creates a Command with sane defaults
package main
import (
	"flag"
	"github.com/spoke-d/clui"
	"github.com/spoke-d/clui/flagset"
)
type daemonCmd struct {
	ui      clui.UI
	flagset *flagset.FlagSet
}