func NewDaemonCli() *DaemonCli {
	daemonFlags = cli.Subcmd("daemon", nil, "Enable daemon mode", true)

	// TODO(tiborvass): remove InstallFlags?
	daemonConfig := new(daemon.Config)
	daemonConfig.LogConfig.Config = make(map[string]string)
	daemonConfig.ClusterOpts = make(map[string]string)
	daemonConfig.InstallFlags(daemonFlags, presentInHelp)
	daemonConfig.InstallFlags(flag.CommandLine, absentFromHelp)
	registryOptions := new(registry.Options)
	registryOptions.InstallFlags(daemonFlags, presentInHelp)
	registryOptions.InstallFlags(flag.CommandLine, absentFromHelp)
	daemonFlags.Require(flag.Exact, 0)

	return &DaemonCli{
		Config:          daemonConfig,
		registryOptions: registryOptions,
	}
}
// NewDaemonCli returns a pre-configured daemon CLI
NewDaemonCli returns a pre-configured daemon CLI
// NewDaemonCli returns a pre - configured daemon CLI
func NewDaemonCli() *DaemonCli {
	daemonFlags = cli.Subcmd("daemon", nil, "Enable daemon mode", true)
	daemonConfig := new(daemon.Config)
	daemonConfig.LogConfig.Config = make(map[string]string)
	daemonConfig.ClusterOpts = make(map[string]string)
	daemonConfig.InstallFlags(daemonFlags, presentInHelp)
	daemonConfig.InstallFlags(flag.CommandLine, absentFromHelp)
	registryOptions := new(registry.Options)
	registryOptions.InstallFlags(daemonFlags, presentInHelp)
	registryOptions.InstallFlags(flag.CommandLine, absentFromHelp)
	daemonFlags.Require(flag.Exact, 0)
	return &DaemonCli{
		Config:          daemonConfig,
		registryOptions: registryOptions,
	}
}
func NewDaemonCli ( ) * DaemonCli { daemonFlags = cli . Subcmd ( " " , nil , " " , true ) daemonConfig := new ( daemon . Config ) daemonConfig . LogConfig . Config = make ( map [ string ] string ) daemonConfig . ClusterOpts = make ( map [ string ] string ) daemonConfig . InstallFlags ( daemonFlags , presentInHelp ) daemonConfig . InstallFlags ( flag . CommandLine , absentFromHelp ) registryOptions := new ( registry . Options ) registryOptions . InstallFlags ( daemonFlags , presentInHelp ) registryOptions . InstallFlags ( flag . CommandLine , absentFromHelp ) daemonFlags . Require ( flag . Exact , 0 ) return & DaemonCli { Config : daemonConfig , registryOptions : registryOptions , } }
NewDaemonCli returns a pre-configured daemon CLI
NewDaemonCli returns a pre - configured daemon CLI
// TODO(tiborvass): remove InstallFlags?