mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 16:40:26 +02:00
Added cleancache
This commit is contained in:
parent
31746c1f19
commit
a1413866a7
3 changed files with 84 additions and 21 deletions
|
@ -92,6 +92,14 @@ namespace BeefBuild
|
|||
mWantsClean = false;
|
||||
}
|
||||
|
||||
if (mVerb == .CleanCache)
|
||||
{
|
||||
LoadConfig();
|
||||
mPackMan.CleanCache();
|
||||
Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mWorkspace.mDir == null)
|
||||
{
|
||||
mWorkspace.mDir = new String();
|
||||
|
@ -193,6 +201,10 @@ namespace BeefBuild
|
|||
return true;
|
||||
case "-crash":
|
||||
Runtime.FatalError("-crash specified on command line");
|
||||
case "-cleancache":
|
||||
if (mPackMan.mCleanHashSet.TryAddAlt("*", var entryPtr))
|
||||
*entryPtr = new .("*");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!key.StartsWith('-'))
|
||||
|
@ -207,6 +219,8 @@ namespace BeefBuild
|
|||
mVerb = .None;
|
||||
case "new":
|
||||
mVerb = .New;
|
||||
case "cleancache":
|
||||
mVerb = .CleanCache;
|
||||
case "generate":
|
||||
mWantsGenerate = true;
|
||||
case "run":
|
||||
|
@ -285,6 +299,10 @@ namespace BeefBuild
|
|||
else
|
||||
Fail(scope String()..AppendF("Invalid verbosity option: {}", value));
|
||||
return true;
|
||||
case "-cleancache":
|
||||
if (mPackMan.mCleanHashSet.TryAddAlt(value, var entryPtr))
|
||||
*entryPtr = new .(value);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue