Skip to content

Commit

Permalink
Impl batch file processing (fixes #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchLeaders committed Jul 4, 2023
1 parent 840fc46 commit 224da33
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/CommandProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ public static class CommandProcessor

public static void Process(List<string> args)
{
if (File.Exists(args[0])) {
string[] files = args.Where(File.Exists).ToArray();
if (files.Length == args.Count) {
WindowHelper.SetWindowMode(WindowMode.Hidden);
ProcessShellInput(args[0]);
foreach (string file in files) {
ProcessShellInput(file);
}

return;
}

if (args[0].AsFlag() == 'h') {
Console.WriteLine("""
Compress a file:
Expand Down

0 comments on commit 224da33

Please sign in to comment.