The release and knowledge tools follow the house rules too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4YtEJrgxG12Pc39Fai8Bd
This commit is contained in:
1 parent
7cad7a32dd
commit
b4bd102b17
2 files changed
+7
-2
No files matched your search
+6
-1
@@ -365,7 +365,7 @@ string Reset(string folder)
|
||||
return folder;
|
||||
}
|
||||
|
||||
string Size(string file) => $"{new FileInfo(file).Length / 1024.0 / 1024.0:0.0} MB";
|
||||
string Size(string file) => $"{new FileInfo(file).Length.ToMegabytes()} MB";
|
||||
|
||||
string Option(string key)
|
||||
{
|
||||
@@ -404,3 +404,8 @@ static string FindRoot()
|
||||
while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "MeWeb.slnx"))) dir = dir.Parent;
|
||||
return dir?.FullName ?? throw new InvalidOperationException("run from inside the repository (MeWeb.slnx not found)");
|
||||
}
|
||||
|
||||
static class NumbersExtensions
|
||||
{
|
||||
public static string ToMegabytes(this long bytes) => (bytes / 1048576.0).ToString("0.0", System.Globalization.CultureInfo.InvariantCulture);
|
||||
}
|
||||
Reference in new issue
Block a user