mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 22:34:09 +02:00
Added support for executing command files
This commit is contained in:
parent
ac9b9f6aa1
commit
18764073dd
1 changed files with 42 additions and 9 deletions
|
@ -455,7 +455,11 @@ namespace IDE
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // Integer
|
else if ((argView == "false") || (argView == "true"))
|
||||||
|
{
|
||||||
|
args.Add(scope:: box (argView == "true"));
|
||||||
|
}
|
||||||
|
else // Integer
|
||||||
{
|
{
|
||||||
switch (int.Parse(argView))
|
switch (int.Parse(argView))
|
||||||
{
|
{
|
||||||
|
@ -721,6 +725,8 @@ namespace IDE
|
||||||
{
|
{
|
||||||
public EditWidgetContent.LineAndColumn mMarkedPos;
|
public EditWidgetContent.LineAndColumn mMarkedPos;
|
||||||
public ScriptManager mScriptManager;
|
public ScriptManager mScriptManager;
|
||||||
|
bool mIsFirstBreak = true;
|
||||||
|
bool mWaitForExecutionPaused = true;
|
||||||
|
|
||||||
public this(ScriptManager scriptManager)
|
public this(ScriptManager scriptManager)
|
||||||
{
|
{
|
||||||
|
@ -861,6 +867,12 @@ namespace IDE
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[IDECommand]
|
||||||
|
public void SetWaitForExecutionPaused(bool value)
|
||||||
|
{
|
||||||
|
mWaitForExecutionPaused = value;
|
||||||
|
}
|
||||||
|
|
||||||
[IDECommand]
|
[IDECommand]
|
||||||
public void OutputLine(Object obj)
|
public void OutputLine(Object obj)
|
||||||
{
|
{
|
||||||
|
@ -895,8 +907,6 @@ namespace IDE
|
||||||
curCmd.mHandled = false;
|
curCmd.mHandled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mIsFirstBreak = true;
|
|
||||||
|
|
||||||
public bool IsPaused()
|
public bool IsPaused()
|
||||||
{
|
{
|
||||||
/*if (gApp.mWatchPanel.mVisible)
|
/*if (gApp.mWatchPanel.mVisible)
|
||||||
|
@ -971,8 +981,11 @@ namespace IDE
|
||||||
if (gApp.mDebugger.HasPendingDebugLoads())
|
if (gApp.mDebugger.HasPendingDebugLoads())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ((!gApp.mExecutionPaused) && (gApp.mDebugger.mIsRunning))
|
if (mWaitForExecutionPaused)
|
||||||
return false;
|
{
|
||||||
|
if ((!gApp.mExecutionPaused) && (gApp.mDebugger.mIsRunning))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var runState = gApp.mDebugger.GetRunState();
|
var runState = gApp.mDebugger.GetRunState();
|
||||||
if (runState == .Terminating)
|
if (runState == .Terminating)
|
||||||
|
@ -993,8 +1006,15 @@ namespace IDE
|
||||||
if (runState == .Running_ToTempBreakpoint)
|
if (runState == .Running_ToTempBreakpoint)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Debug.Assert((runState == .NotStarted) || (runState == .Paused) || (runState == .Running_ToTempBreakpoint) ||
|
if ((!mWaitForExecutionPaused) && (runState == .Running))
|
||||||
(runState == .Exception) || (runState == .Breakpoint) || (runState == .Terminated));
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Assert((runState == .NotStarted) || (runState == .Paused) || (runState == .Running_ToTempBreakpoint) ||
|
||||||
|
(runState == .Exception) || (runState == .Breakpoint) || (runState == .Terminated));
|
||||||
|
}
|
||||||
/*if (runState == .Paused)
|
/*if (runState == .Paused)
|
||||||
{
|
{
|
||||||
NOP!();
|
NOP!();
|
||||||
|
@ -1313,9 +1333,15 @@ namespace IDE
|
||||||
}
|
}
|
||||||
|
|
||||||
[IDECommand]
|
[IDECommand]
|
||||||
public void Execute(String path)
|
public void Execute(String cmd)
|
||||||
{
|
{
|
||||||
ExecuteRaw(path);
|
ExecuteRaw(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
[IDECommand]
|
||||||
|
public void ExecuteCommandFile(String path)
|
||||||
|
{
|
||||||
|
mScriptManager.QueueCommandFile(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
[IDECommand]
|
[IDECommand]
|
||||||
|
@ -2237,6 +2263,13 @@ namespace IDE
|
||||||
ScriptManager.sActiveManager.mHadExpectingError = true;
|
ScriptManager.sActiveManager.mHadExpectingError = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[IDECommand]
|
||||||
|
public void ClearExpectError()
|
||||||
|
{
|
||||||
|
DeleteAndNullify!(ScriptManager.sActiveManager.mExpectingError);
|
||||||
|
ScriptManager.sActiveManager.mHadExpectingError = false;
|
||||||
|
}
|
||||||
|
|
||||||
[IDECommand]
|
[IDECommand]
|
||||||
public void ExpectError()
|
public void ExpectError()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue