From 652927cda79dc1a0a9038b0be5e03f9c9ec71e2e Mon Sep 17 00:00:00 2001 From: Edwin Dijk Date: Fri, 13 Sep 2024 13:31:37 +0200 Subject: [PATCH 1/4] Issue-379: Change clear-cache to clear-temp --- SteamPrefill/CliCommands/ClearCacheCommand.cs | 2 +- SteamPrefill/Properties/launchSettings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SteamPrefill/CliCommands/ClearCacheCommand.cs b/SteamPrefill/CliCommands/ClearCacheCommand.cs index d6e9c43f..fbc09bc7 100644 --- a/SteamPrefill/CliCommands/ClearCacheCommand.cs +++ b/SteamPrefill/CliCommands/ClearCacheCommand.cs @@ -2,7 +2,7 @@ namespace SteamPrefill.CliCommands { [UsedImplicitly] - [Command("clear-cache", Description = "Empties out temporary cached data, to free up disk space")] + [Command("clear-temp", Description = "Empties out temporary cached data (from SteamPrefill), to free up disk space")] public sealed class ClearCacheCommand : ICommand { [CommandOption("yes", shortName: 'y', Description = "When specified, will clear the cache without prompting", Converter = typeof(NullableBoolConverter))] diff --git a/SteamPrefill/Properties/launchSettings.json b/SteamPrefill/Properties/launchSettings.json index a705d933..8057d6bb 100644 --- a/SteamPrefill/Properties/launchSettings.json +++ b/SteamPrefill/Properties/launchSettings.json @@ -38,7 +38,7 @@ }, "Clear cache": { "commandName": "Project", - "commandLineArgs": "clear-cache" + "commandLineArgs": "clear-temp" }, "Stats": { "commandName": "Project", From ab9ad6af8d0c7af4e904540dc994c37a4a4d1069 Mon Sep 17 00:00:00 2001 From: Edwin Dijk Date: Fri, 13 Sep 2024 13:50:50 +0200 Subject: [PATCH 2/4] Update documentation to match new command and update file-names --- .../detailed-command-usage/{Clear-Cache.md => Clear-Temp.md} | 4 ++-- .../casts/{clear-cache.cast => clear-temp.cast} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/mkdocs/detailed-command-usage/{Clear-Cache.md => Clear-Temp.md} (89%) rename docs/mkdocs/detailed-command-usage/casts/{clear-cache.cast => clear-temp.cast} (100%) diff --git a/docs/mkdocs/detailed-command-usage/Clear-Cache.md b/docs/mkdocs/detailed-command-usage/Clear-Temp.md similarity index 89% rename from docs/mkdocs/detailed-command-usage/Clear-Cache.md rename to docs/mkdocs/detailed-command-usage/Clear-Temp.md index d10adc38..b8bfe189 100644 --- a/docs/mkdocs/detailed-command-usage/Clear-Cache.md +++ b/docs/mkdocs/detailed-command-usage/Clear-Temp.md @@ -1,6 +1,6 @@ -# clear-cache +# clear-temp -
+

## Overview diff --git a/docs/mkdocs/detailed-command-usage/casts/clear-cache.cast b/docs/mkdocs/detailed-command-usage/casts/clear-temp.cast similarity index 100% rename from docs/mkdocs/detailed-command-usage/casts/clear-cache.cast rename to docs/mkdocs/detailed-command-usage/casts/clear-temp.cast From d4190d4e829d84a9f395b956da5cf456df9806ea Mon Sep 17 00:00:00 2001 From: Edwin Dijk Date: Fri, 13 Sep 2024 14:07:11 +0200 Subject: [PATCH 3/4] Updated class name and launch profile name to match command change --- .../{ClearCacheCommand.cs => ClearTempCommand.cs} | 2 +- SteamPrefill/Properties/launchSettings.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename SteamPrefill/CliCommands/{ClearCacheCommand.cs => ClearTempCommand.cs} (98%) diff --git a/SteamPrefill/CliCommands/ClearCacheCommand.cs b/SteamPrefill/CliCommands/ClearTempCommand.cs similarity index 98% rename from SteamPrefill/CliCommands/ClearCacheCommand.cs rename to SteamPrefill/CliCommands/ClearTempCommand.cs index fbc09bc7..f1478232 100644 --- a/SteamPrefill/CliCommands/ClearCacheCommand.cs +++ b/SteamPrefill/CliCommands/ClearTempCommand.cs @@ -3,7 +3,7 @@ namespace SteamPrefill.CliCommands { [UsedImplicitly] [Command("clear-temp", Description = "Empties out temporary cached data (from SteamPrefill), to free up disk space")] - public sealed class ClearCacheCommand : ICommand + public sealed class ClearTempCommand : ICommand { [CommandOption("yes", shortName: 'y', Description = "When specified, will clear the cache without prompting", Converter = typeof(NullableBoolConverter))] public bool? AcceptPrompt { get; init; } diff --git a/SteamPrefill/Properties/launchSettings.json b/SteamPrefill/Properties/launchSettings.json index 8057d6bb..02807198 100644 --- a/SteamPrefill/Properties/launchSettings.json +++ b/SteamPrefill/Properties/launchSettings.json @@ -36,13 +36,13 @@ "commandName": "Project", "commandLineArgs": "benchmark run" }, - "Clear cache": { - "commandName": "Project", - "commandLineArgs": "clear-temp" - }, "Stats": { "commandName": "Project", "commandLineArgs": "status --nocache" + }, + "Clear Temp": { + "commandName": "Project", + "commandLineArgs": "clear-temp" } } -} +} \ No newline at end of file From e0762f65548048140795ea5f985cdaeea3d18b1f Mon Sep 17 00:00:00 2001 From: Tim Pilius Date: Fri, 13 Sep 2024 13:05:50 -0400 Subject: [PATCH 4/4] Reworking some more verbiage to avoid the word "cache" where possible --- .editorconfig | 212 +++++++++--------- LancachePrefill.Common | 2 +- SteamPrefill/CliCommands/ClearTempCommand.cs | 28 +-- SteamPrefill/CliCommands/PrefillCommand.cs | 2 +- SteamPrefill/Models/DepotInfo.cs | 2 +- SteamPrefill/Settings/AppConfig.cs | 21 +- .../detailed-command-usage/Clear-Temp.md | 12 +- .../casts/clear-temp.cast | 8 +- 8 files changed, 146 insertions(+), 141 deletions(-) diff --git a/.editorconfig b/.editorconfig index ee908fce..206d3a56 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,102 +1,110 @@ -#TODO move this to lancache common -root = true - -[*] -end_of_line = lf - -[*.js] -indent_style = tab -tab_size = 4 -curly_bracket_next_line = true - -[*.py] -indent_style = tab -tab_size = 4 - -[*.csproj] -indent_style = space -indent_size = 2 - -# .NET formatting rules. See https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/formatting-rules -# Resharper Rules. See https://www.jetbrains.com/help/resharper/EditorConfig_Index.html -[*.cs] -# TODO change this to tab in all projects. -indent_style = space -indent_size = 4 - -# ----- Resharper Rules ----- -# https://www.jetbrains.com/help/resharper/EditorConfig_CSHARP_CSharpIndentStylePageSchema.html#resharper_csharp_align_linq_query -align_linq_query = true -align_multiline_calls_chain = true -# Won't force add blank lines after block statements -blank_lines_after_block_statements = 0 -csharp_prefer_braces = true -csharp_space_after_cast = false -indent_preprocessor_region = do_not_change -space_between_attribute_sections = false - - -# CA1002: Do not expose generic lists -dotnet_diagnostic.CA1002.severity = none -# CA1008: Enums should have zero value -# - The enums in this case are modeling Steam enums, so I have to match them exactly. -dotnet_diagnostic.CA1008.severity = none -# CA1014: Mark assemblies with CLSCompliant -dotnet_diagnostic.CA1014.severity = none -# CA1031: Modify (method) to catch a more specific allowed exception type, or rethrow the exception -dotnet_diagnostic.CA1031.severity = none -# CA1034: Nested types should not be visible -dotnet_diagnostic.CA1034.severity = none - -# CA1051: Do not declare visible instance fields -dotnet_diagnostic.CA1051.severity = none -# CA1054: URI parameters should not be strings -dotnet_diagnostic.CA1054.severity = none -# CA1056: URI properties should not be strings -dotnet_diagnostic.CA1056.severity = none -# CA1062: Validate arguments of public methods -dotnet_diagnostic.CA1062.severity = none -# CA1305: The behavior of 'int.Parse(string)' could vary based on the current user's locale settings. -dotnet_diagnostic.CA1305.severity = none -# CA1307: Specify StringComparison for clarity -dotnet_diagnostic.CA1307.severity = none -dotnet_diagnostic.CA1310.severity = none -# CA1815: Override equals and operator equals on value types -dotnet_diagnostic.CA1815.severity = none -# CA1822: Member does not access instance data and can be marked as static -dotnet_diagnostic.CA1822.severity = none - -# CA1854: Prefer the IDictionary.TryGetValue(TKey, out TValue) method -# - I'm not worried about performance in this application where ContainsKey() is being used, and I like the current syntax as far as readability -dotnet_diagnostic.CA1854.severity = none - -# CA1860: Avoid using 'Enumerable.Any()' extension method, both for clarity and performance -# - I don't agree with this analyzer, using Any() is far more readable than comparing Count == 0, and has been a pattern in dotnet for more than a decade -dotnet_diagnostic.CA1860.severity = none - -# CA2007: Consider calling ConfigureAwait on the awaited task -dotnet_diagnostic.CA2007.severity = none -# CA2201: Do not raise reserved exception types -dotnet_diagnostic.CA2201.severity = none - -# CS1998: Async method lacks 'await' operators and will run synchronously -dotnet_diagnostic.cs1998.severity = error -# CS4014: Because this call is not awaited, execution of the current method continues before the call is completed -dotnet_diagnostic.cs4014.severity = error - -# IDE0028: Simplify collection initialization -# - Not a fan of the syntax, feels a little bit too terse -dotnet_style_prefer_collection_expression = false - -# IDE0090 : 'new' expression can be simplified -csharp_style_implicit_object_creation_when_type_is_apparent = false - -# IDE0290: Use primary constructor -# - I'm a fan of this syntax in Typescript, but it still feels a bit too jarring seeing it C# now -csharp_style_prefer_primary_constructors = false - -# Banned APIs will be bumped up to an error instead of warning -dotnet_diagnostic.rs0030.severity = error - -# The method does not need to use async/await - Introduces annoying 'return' statements for async methods, that hurt code readability. -dotnet_diagnostic.AsyncFixer01.severity = none +#TODO move this to lancache common +root = true + +[*] +end_of_line = lf + +[*.js] +indent_style = tab +tab_size = 4 +curly_bracket_next_line = true + +[*.py] +indent_style = tab +tab_size = 4 + +[*.csproj] +indent_style = space +indent_size = 2 + +# .NET formatting rules. See https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/formatting-rules +# Resharper Rules. See https://www.jetbrains.com/help/resharper/EditorConfig_Index.html +[*.cs] +# TODO change this to tab in all projects. +indent_style = space +indent_size = 4 + +# ----- Resharper Rules ----- +# https://www.jetbrains.com/help/resharper/EditorConfig_CSHARP_CSharpIndentStylePageSchema.html#resharper_csharp_align_linq_query +align_linq_query = true +align_multiline_calls_chain = true +# Won't force add blank lines after block statements +blank_lines_after_block_statements = 0 +csharp_prefer_braces = true +csharp_space_after_cast = false +indent_preprocessor_region = do_not_change +space_between_attribute_sections = false + + +# CA1002: Do not expose generic lists +dotnet_diagnostic.CA1002.severity = none +# CA1008: Enums should have zero value +# - The enums in this case are modeling Steam enums, so I have to match them exactly. +dotnet_diagnostic.CA1008.severity = none +# CA1014: Mark assemblies with CLSCompliant +dotnet_diagnostic.CA1014.severity = none +# CA1031: Modify (method) to catch a more specific allowed exception type, or rethrow the exception +dotnet_diagnostic.CA1031.severity = none +# CA1034: Nested types should not be visible +dotnet_diagnostic.CA1034.severity = none + +# CA1051: Do not declare visible instance fields +dotnet_diagnostic.CA1051.severity = none +# CA1054: URI parameters should not be strings +dotnet_diagnostic.CA1054.severity = none +# CA1056: URI properties should not be strings +dotnet_diagnostic.CA1056.severity = none +# CA1062: Validate arguments of public methods +dotnet_diagnostic.CA1062.severity = none +# CA1305: The behavior of 'int.Parse(string)' could vary based on the current user's locale settings. +dotnet_diagnostic.CA1305.severity = none +# CA1307: Specify StringComparison for clarity +dotnet_diagnostic.CA1307.severity = none +dotnet_diagnostic.CA1310.severity = none +# CA1815: Override equals and operator equals on value types +dotnet_diagnostic.CA1815.severity = none +# CA1822: Member does not access instance data and can be marked as static +dotnet_diagnostic.CA1822.severity = none + +# CA1854: Prefer the IDictionary.TryGetValue(TKey, out TValue) method +# - I'm not worried about performance in this application where ContainsKey() is being used, and I like the current syntax as far as readability +dotnet_diagnostic.CA1854.severity = none + +# CA1860: Avoid using 'Enumerable.Any()' extension method, both for clarity and performance +# - I don't agree with this analyzer, using Any() is far more readable than comparing Count == 0, and has been a pattern in dotnet for more than a decade +dotnet_diagnostic.CA1860.severity = none + +# CA2007: Consider calling ConfigureAwait on the awaited task +dotnet_diagnostic.CA2007.severity = none +# CA2201: Do not raise reserved exception types +dotnet_diagnostic.CA2201.severity = none + +# CS1998: Async method lacks 'await' operators and will run synchronously +dotnet_diagnostic.cs1998.severity = error +# CS4014: Because this call is not awaited, execution of the current method continues before the call is completed +dotnet_diagnostic.cs4014.severity = error + +# IDE0028: Simplify collection initialization +# - Not a fan of the syntax, feels a little bit too terse +dotnet_style_prefer_collection_expression = false + +# IDE0074: Use compound assignment +# - I'm not a big fan of this syntax, I find it a bit difficult to read similarly how I find ternary operators difficult to read. +dotnet_diagnostic.IDE0074.severity = none + +# IDE0090 : 'new' expression can be simplified +csharp_style_implicit_object_creation_when_type_is_apparent = false + +# IDE0270: Null check can be simplified +dotnet_style_coalesce_expression = false +dotnet_diagnostic.IDE0270.severity = none + +# IDE0290: Use primary constructor +# - I'm a fan of this syntax in Typescript, but it still feels a bit too jarring seeing it C# now +csharp_style_prefer_primary_constructors = false + +# Banned APIs will be bumped up to an error instead of warning +dotnet_diagnostic.rs0030.severity = error + +# The method does not need to use async/await - Introduces annoying 'return' statements for async methods, that hurt code readability. +dotnet_diagnostic.AsyncFixer01.severity = none diff --git a/LancachePrefill.Common b/LancachePrefill.Common index ca22ebb9..f8b06c7a 160000 --- a/LancachePrefill.Common +++ b/LancachePrefill.Common @@ -1 +1 @@ -Subproject commit ca22ebb954c6f4788401ab4312ae54292c56d280 +Subproject commit f8b06c7aa61079ed28b16ad618db55edcccf3fef diff --git a/SteamPrefill/CliCommands/ClearTempCommand.cs b/SteamPrefill/CliCommands/ClearTempCommand.cs index f1478232..5d75ac63 100644 --- a/SteamPrefill/CliCommands/ClearTempCommand.cs +++ b/SteamPrefill/CliCommands/ClearTempCommand.cs @@ -2,10 +2,10 @@ namespace SteamPrefill.CliCommands { [UsedImplicitly] - [Command("clear-temp", Description = "Empties out temporary cached data (from SteamPrefill), to free up disk space")] + [Command("clear-temp", Description = "Empties out temporary data, such as saved manifests, to free up disk space")] public sealed class ClearTempCommand : ICommand { - [CommandOption("yes", shortName: 'y', Description = "When specified, will clear the cache without prompting", Converter = typeof(NullableBoolConverter))] + [CommandOption("yes", shortName: 'y', Description = "When specified, will clear the temp files without prompting.", Converter = typeof(NullableBoolConverter))] public bool? AcceptPrompt { get; init; } public ValueTask ExecuteAsync(IConsole console) @@ -14,28 +14,28 @@ public ValueTask ExecuteAsync(IConsole console) var ansiConsole = console.CreateAnsiConsole(); // Remove the v1/v2/v3 sub-directories - var rootCacheDir = new DirectoryInfo(AppConfig.CacheDir).Parent; + var rootTempDir = new DirectoryInfo(AppConfig.TempDir).Parent; - // Scanning the cache directory to see how much space could be saved - List cacheFolderContents = null; - ansiConsole.StatusSpinner().Start($"Scanning {Cyan("Cache")} directory...", ctx => + // Scanning the temp directory to see how much space could be saved + List tempFolderContents = null; + ansiConsole.StatusSpinner().Start($"Scanning {Cyan("temp")} directory...", ctx => { - cacheFolderContents = rootCacheDir.EnumerateFiles("*.*", SearchOption.AllDirectories).ToList(); + tempFolderContents = rootTempDir.EnumerateFiles("*.*", SearchOption.AllDirectories).ToList(); }); - var totalSizeOnDisk = ByteSize.FromBytes(cacheFolderContents.Sum(e => e.Length)); - if (totalSizeOnDisk.Bytes == 0 && cacheFolderContents.Count == 0) + var totalSizeOnDisk = ByteSize.FromBytes(tempFolderContents.Sum(e => e.Length)); + if (totalSizeOnDisk.Bytes == 0 && tempFolderContents.Count == 0) { - ansiConsole.LogMarkupLine($"Nothing to cleanup! {Cyan("Cache")} directory is already empty!"); + ansiConsole.LogMarkupLine($"Nothing to cleanup! {Cyan("temp")} directory is already empty!"); return default; } - ansiConsole.LogMarkupLine($"Found {LightYellow(cacheFolderContents.Count)} cached files, totaling {Magenta(totalSizeOnDisk.ToDecimalString())}"); + ansiConsole.LogMarkupLine($"Found {LightYellow(tempFolderContents.Count)} temp files, totaling {Magenta(totalSizeOnDisk.ToDecimalString())}"); // If user hasn't passed in the accept flag, then we should ask them if they want to delete the files if (!(AcceptPrompt ?? false)) { var userResponse = ansiConsole.Prompt(new SelectionPrompt() - .Title("Continue to empty cache?") + .Title("Continue to delete temp files?") .AddChoices(true, false) .UseConverter(e => e == false ? "No" : "Yes")); filesShouldBeDeleted = filesShouldBeDeleted || userResponse; @@ -46,9 +46,9 @@ public ValueTask ExecuteAsync(IConsole console) return default; } - ansiConsole.StatusSpinner().Start("Deleting cached files...", ctx => + ansiConsole.StatusSpinner().Start("Deleting temp files...", ctx => { - Directory.Delete(rootCacheDir.FullName, true); + Directory.Delete(rootTempDir.FullName, true); }); ansiConsole.LogMarkupLine("Done!"); diff --git a/SteamPrefill/CliCommands/PrefillCommand.cs b/SteamPrefill/CliCommands/PrefillCommand.cs index 94f92c35..ff7056ec 100644 --- a/SteamPrefill/CliCommands/PrefillCommand.cs +++ b/SteamPrefill/CliCommands/PrefillCommand.cs @@ -56,7 +56,7 @@ public async ValueTask ExecuteAsync(IConsole console) // Property must be set to false in order to disable ansi escape sequences _ansiConsole.Profile.Capabilities.Ansi = !NoAnsiEscapeSequences ?? true; - await UpdateChecker.CheckForUpdatesAsync(typeof(Program), "tpill90/steam-lancache-prefill", AppConfig.CacheDir); + await UpdateChecker.CheckForUpdatesAsync(typeof(Program), "tpill90/steam-lancache-prefill", AppConfig.TempDir); var downloadArgs = new DownloadArguments { diff --git a/SteamPrefill/Models/DepotInfo.cs b/SteamPrefill/Models/DepotInfo.cs index fc050510..5441ac3f 100644 --- a/SteamPrefill/Models/DepotInfo.cs +++ b/SteamPrefill/Models/DepotInfo.cs @@ -7,7 +7,7 @@ public sealed class DepotInfo public ulong? ManifestId { get; set; } - public string ManifestFileName => $"{AppConfig.CacheDir}/{_originalAppId}_{ContainingAppId}_{DepotId}_{ManifestId}.bin"; + public string ManifestFileName => $"{AppConfig.TempDir}/{_originalAppId}_{ContainingAppId}_{DepotId}_{ManifestId}.bin"; /// /// Determines what app actually owns the depot, by default it is the current app. diff --git a/SteamPrefill/Settings/AppConfig.cs b/SteamPrefill/Settings/AppConfig.cs index 82fb7ab0..397591cd 100644 --- a/SteamPrefill/Settings/AppConfig.cs +++ b/SteamPrefill/Settings/AppConfig.cs @@ -6,7 +6,7 @@ static AppConfig() { // Create required folders Directory.CreateDirectory(ConfigDir); - Directory.CreateDirectory(CacheDir); + Directory.CreateDirectory(TempDir); } /// @@ -31,12 +31,7 @@ public static bool VerboseLogs /// Downloaded manifests, as well as other metadata, are saved into this directory to speedup future prefill runs. /// All data in here should be able to be deleted safely. /// - public static readonly string CacheDir = CacheDirUtils.GetCacheDirBaseDirectories("SteamPrefill", CacheDirVersion); - - /// - /// Increment when there is a breaking change made to the files in the cache directory - /// - private const string CacheDirVersion = "v1"; + public static readonly string TempDir = TempDirUtils.GetTempDirBaseDirectories("SteamPrefill", "v1"); /// /// Contains user configuration. Should not be deleted, doing so will reset the app back to defaults. @@ -54,22 +49,22 @@ public static bool VerboseLogs public static readonly string UserSelectedAppsPath = Path.Combine(ConfigDir, "selectedAppsToPrefill.json"); /// - /// Keeps track of which depots have been previously downloaded. Is used to determine whether or not a game is up to date, - /// based on whether all of the depots being downloaded are up to date. + /// Keeps track of which depots have been previously downloaded. Is used to determine whether a game is up-to-date, + /// based on whether all the depots being downloaded are up-to-date. /// public static readonly string SuccessfullyDownloadedDepotsPath = Path.Combine(ConfigDir, "successfullyDownloadedDepots.json"); /// - /// Stores the user's current CellId, which corresponds to their region. + /// Stores the user's current CellId, which corresponds to their region. /// /// See for additional documentation - public static readonly string CachedCellIdPath = Path.Combine(CacheDir, "cellId.txt"); + public static readonly string CachedCellIdPath = Path.Combine(TempDir, "cellId.txt"); #endregion - #region Debugging + #region Debugging - public static readonly string DebugOutputDir = Path.Combine(CacheDir, "Debugging"); + public static readonly string DebugOutputDir = Path.Combine(TempDir, "Debugging"); /// /// Skips using locally cached manifests. Saves disk space, at the expense of slower subsequent runs. Intended for debugging. diff --git a/docs/mkdocs/detailed-command-usage/Clear-Temp.md b/docs/mkdocs/detailed-command-usage/Clear-Temp.md index b8bfe189..332211d8 100644 --- a/docs/mkdocs/detailed-command-usage/Clear-Temp.md +++ b/docs/mkdocs/detailed-command-usage/Clear-Temp.md @@ -4,11 +4,13 @@
## Overview -Deletes temporary cached manifests stored in the `/Cache` directory. -These files are cached in order to dramatically speed up future `prefill` runs (in some cases 3X faster). -For most users it isn't necessary to use this command, however it may be useful to free up some disk space if you are running low on storage. +Deletes temporary data created by {{prefill_name}}, such as saved manifests, to free up disk space. + +These files are saved locally in order to dramatically speed up future `prefill` runs (in some cases 3X faster), at the expense of increase disk usage. These manifests will also build up over time, as newer versions of games are released, leaving unused manifests behind that will never be used again. + +For most users it isn't necessary to use this command, however it may be useful to free up some disk space if you are running low on storage, or to reset any temp data to assist with debugging {{prefill_name}}. + -These cached manifests will also build up over time, as newer versions of games are released, leaving unused manifests behind that will never be used again. ----- @@ -16,4 +18,4 @@ These cached manifests will also build up over time, as newer versions of games | Option | | | | ----------- | --- | --- | -| --yes | -y | Skips the prompt asking to clear the cache, and immediately begins clearing the cache. | \ No newline at end of file +| --yes | -y | Clears the temp files immediately, displaying a prompt. | \ No newline at end of file diff --git a/docs/mkdocs/detailed-command-usage/casts/clear-temp.cast b/docs/mkdocs/detailed-command-usage/casts/clear-temp.cast index 1e4b8d1e..db98df86 100644 --- a/docs/mkdocs/detailed-command-usage/casts/clear-temp.cast +++ b/docs/mkdocs/detailed-command-usage/casts/clear-temp.cast @@ -2,9 +2,9 @@ [0.070479, "o", "\u001b[?1h\u001b="] [0.070977, "o", "\u001b[39;49m"] [0.097002, "o", "\u001b[?25l"] -[0.124736, "o", " \r\n\u001b[38;5;2m⣾\u001b[0m Scanning \u001b[38;5;80mCache\u001b[0m directory...\r\n "] +[0.124736, "o", " \r\n\u001b[38;5;2m⣾\u001b[0m Scanning \u001b[38;5;80mTemp\u001b[0m directory...\r\n "] [0.124955, "o", "\r\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K"] [0.125015, "o", "\u001b[?25h"] -[0.125779, "o", "[6:08:17 PM] Found \u001b[38;5;229m142\u001b[0m cached files, totaling \u001b[38;5;170m26.49 MiB\u001b[0m\r\n"] -[0.137423, "o", "\u001b[?25lContinue to empty cache?\r\n \r\n\u001b[38;5;12m> Yes\u001b[0m \r\n No "] -[0.13761, "o", "\r\u001b[3AContinue to empty cache?\r\n \r\n\u001b[38;5;12m> Yes\u001b[0m \r\n No "] +[0.125779, "o", "[6:08:17 PM] Found \u001b[38;5;229m142\u001b[0m temp files, totaling \u001b[38;5;170m26.49 MiB\u001b[0m\r\n"] +[0.137423, "o", "\u001b[?25lContinue to delete temp files?\r\n \r\n\u001b[38;5;12m> Yes\u001b[0m \r\n No "] +[0.13761, "o", "\r\u001b[3AContinue to delete temp files?\r\n \r\n\u001b[38;5;12m> Yes\u001b[0m \r\n No "]