func allowCheckEnvOpsFail(flow *core.ParsedCmds) bool {
	last := flow.Cmds[0].LastCmd()
	if last == nil {
		return false
	}
	allows := []interface{}{
		builtin.DumpCmdNoRecursive,
		builtin.SaveFlow,
		builtin.DumpTailCmdInfo,
		builtin.DumpTailCmdSub,
		builtin.GlobalHelpMoreInfo,
		builtin.GlobalHelpLessInfo,
		builtin.DumpFlowAll,
		builtin.DumpFlowAllSimple,
		builtin.DumpFlow,
		builtin.DumpFlowSimple,
		builtin.DumpFlowDepends,
		builtin.DumpFlowSkeleton,
		builtin.DumpFlowEnvOpsCheckResult,
	}
	for _, allow := range allows {
		if last.IsTheSameFunc(allow) {
			return true
		}
	}
	return false
}
// TODO: move to command property
move to command property
// TODO : move to command property
func allowCheckEnvOpsFail(flow *core.ParsedCmds) bool {
	last := flow.Cmds[0].LastCmd()
	if last == nil {
		return false
	}
	allows := []interface{}{
		builtin.DumpCmdNoRecursive,
		builtin.SaveFlow,
		builtin.DumpTailCmdInfo,
		builtin.DumpTailCmdSub,
		builtin.GlobalHelpMoreInfo,
		builtin.GlobalHelpLessInfo,
		builtin.DumpFlowAll,
		builtin.DumpFlowAllSimple,
		builtin.DumpFlow,
		builtin.DumpFlowSimple,
		builtin.DumpFlowDepends,
		builtin.DumpFlowSkeleton,
		builtin.DumpFlowEnvOpsCheckResult,
	}
	for _, allow := range allows {
		if last.IsTheSameFunc(allow) {
			return true
		}
	}
	return false
}
func allowCheckEnvOpsFail ( flow * core . ParsedCmds ) bool { last := flow . Cmds [ 0 ] . LastCmd ( ) if last == nil { return false } allows := [ ] interface { } { builtin . DumpCmdNoRecursive , builtin . SaveFlow , builtin . DumpTailCmdInfo , builtin . DumpTailCmdSub , builtin . GlobalHelpMoreInfo , builtin . GlobalHelpLessInfo , builtin . DumpFlowAll , builtin . DumpFlowAllSimple , builtin . DumpFlow , builtin . DumpFlowSimple , builtin . DumpFlowDepends , builtin . DumpFlowSkeleton , builtin . DumpFlowEnvOpsCheckResult , } for _ , allow := range allows { if last . IsTheSameFunc ( allow ) { return true } } return false }
move to command property
move to command property