From 415aebfd74fbe03c5acf90c974a92450053a3079 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 26 Jan 2025 17:05:53 -0600 Subject: [PATCH] fix: use debug --- src/CLI/Functions/Debug.cs | 18 ++++++++++++++++++ src/CLI/Program.cs | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/CLI/Functions/Debug.cs diff --git a/src/CLI/Functions/Debug.cs b/src/CLI/Functions/Debug.cs new file mode 100644 index 000000000..8c2d6e84c --- /dev/null +++ b/src/CLI/Functions/Debug.cs @@ -0,0 +1,18 @@ +using DotNet.Globbing; + +namespace CLI.Functions +{ + public static class Debug + { + public static void Run(string[] args) + { + var glob = Glob.Parse("Blitz/Content/Tanks/**"); + + Console.WriteLine( + glob.IsMatch( + "Blitz/Content/Tanks/China/Ch01_Type59/Attachments/ATC_Ch01_Type59_hull.uasset" + ) + ); + } + } +} diff --git a/src/CLI/Program.cs b/src/CLI/Program.cs index 8c0101cdf..99a9bd2a0 100644 --- a/src/CLI/Program.cs +++ b/src/CLI/Program.cs @@ -16,7 +16,7 @@ namespace CLI case "test": { - Test.Run(args); + Debug.Run(args); break; }