Esempio n. 1
0
func isBootstrapNode(ctx *cli.Context) bool {
	if ctx.App != nil && !ctx.IsSet(config.CFG_BOOTSTRAP) {
		return config.Daemon.Bootstrap
	}
	return ctx.Bool(config.CFG_BOOTSTRAP)
}
Esempio n. 2
0
func isDebugEnabled(ctx *cli.Context) bool {
	if ctx.App != nil && !ctx.IsSet(config.CFG_DEBUG) {
		return config.Daemon.Debug
	}
	return ctx.Bool(config.CFG_DEBUG)
}