Skip to content

Commit

Permalink
chore: skip
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Dec 17, 2024
1 parent b07f3f2 commit 66d8d72
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Actions/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,16 @@ public void UpdateVersion(string version, string path, bool dryRun)
[Command("validate-file-exists")]
public void ValidateFileExists(string pathPattern, bool verbose)
{
_verbose = verbose;
SetOptions(verbose);

WriteLog($"Validating path, {pathPattern} ...");
WriteVerbose($"UTF8: {DebugTools.ToUtf8Base64String(pathPattern)}");
if (string.IsNullOrWhiteSpace(pathPattern))
{
WriteLog("Empty path detected, skip execution.");
return;
}

var command = new FileExsistsCommand(pathPattern);
command.Validate();

Expand Down Expand Up @@ -101,6 +108,11 @@ public void CreateDummy(string basePath)
_ => throw new NotImplementedException(nameof(format)),
};

private void SetOptions(bool verbose)
{
_verbose = verbose;
}

void WriteLog(string value)
{
Console.WriteLine($"[{DateTime.Now:s}] {value}");
Expand Down

0 comments on commit 66d8d72

Please sign in to comment.