func RegisterDbgCmds(cmds *core.CmdTree) {
	cmds.AddSub("echo").
		RegCmd(DbgEcho,
			"print message from argv").
		AddArg("message", "", "msg", "m", "M")

	step := cmds.AddSub("step-by-step", "step", "s", "S")
	step.RegEmptyCmd(
		"enable step by step").
		AddVal2Env("sys.step-by-step", "true").
		SetQuiet()
	step.AddSub("on", "yes", "y", "Y", "1", "+").
		RegEmptyCmd(
			"enable step by step").
		AddVal2Env("sys.step-by-step", "true").
		SetQuiet()
	step.AddSub("off", "no", "n", "N", "0", "-").
		RegEmptyCmd(
			"disable step by step").
		AddVal2Env("sys.step-by-step", "false").
		SetQuiet()

	cmds.AddSub("delay-execute", "delay", "dl", "d", "D").
		RegCmd(DbgDelayExecute,
			"wait for a while before executing a command").
		SetQuiet().
		AddArg("seconds", "3", "second", "sec", "s", "S")

	cmds.AddSub("exec").SetHidden().
		RegCmd(DbgExecBash,
			"verify bash in os/exec")
}
// This cmds are for debug
This cmds are for debug
// This cmds are for debug
func RegisterDbgCmds(cmds *core.CmdTree) {
	cmds.AddSub("echo").
		RegCmd(DbgEcho,
			"print message from argv").
		AddArg("message", "", "msg", "m", "M")
	step := cmds.AddSub("step-by-step", "step", "s", "S")
	step.RegEmptyCmd(
		"enable step by step").
		AddVal2Env("sys.step-by-step", "true").
		SetQuiet()
	step.AddSub("on", "yes", "y", "Y", "1", "+").
		RegEmptyCmd(
			"enable step by step").
		AddVal2Env("sys.step-by-step", "true").
		SetQuiet()
	step.AddSub("off", "no", "n", "N", "0", "-").
		RegEmptyCmd(
			"disable step by step").
		AddVal2Env("sys.step-by-step", "false").
		SetQuiet()
	cmds.AddSub("delay-execute", "delay", "dl", "d", "D").
		RegCmd(DbgDelayExecute,
			"wait for a while before executing a command").
		SetQuiet().
		AddArg("seconds", "3", "second", "sec", "s", "S")
	cmds.AddSub("exec").SetHidden().
		RegCmd(DbgExecBash,
			"verify bash in os/exec")
}
func RegisterDbgCmds ( cmds * core . CmdTree ) { cmds . AddSub ( " " ) . RegCmd ( DbgEcho , " " ) . AddArg ( " " , " " , " " , " " , " " ) step := cmds . AddSub ( " " , " " , " " , " " ) step . RegEmptyCmd ( " " ) . AddVal2Env ( " " , " " ) . SetQuiet ( ) step . AddSub ( " " , " " , " " , " " , " " , " " ) . RegEmptyCmd ( " " ) . AddVal2Env ( " " , " " ) . SetQuiet ( ) step . AddSub ( " " , " " , " " , " " , " " , " " ) . RegEmptyCmd ( " " ) . AddVal2Env ( " " , " " ) . SetQuiet ( ) cmds . AddSub ( " " , " " , " " , " " , " " ) . RegCmd ( DbgDelayExecute , " " ) . SetQuiet ( ) . AddArg ( " " , " " , " " , " " , " " , " " ) cmds . AddSub ( " " ) . SetHidden ( ) . RegCmd ( DbgExecBash , " " ) }
This cmds are for debug
This cmds are for debug