pacserver/Program.cs
ProfessionalUwU 04048c4cb9
Implement determinePacmanCacheDirectory
Used a StreamReader to read pacman.conf and then read one line until a line contains CacheDir
Then used a regex to only get the cache directory
2023-06-03 12:11:32 +02:00

17 lines
521 B
C#

public class Program {
static void Main(string[] args) {
if (args.Length == 0) {
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Please specify an option.");
Console.ResetColor();
} else {
switch (args[0]) {
case "determinePacmanCacheDirectory":
Pacserver.determinePacmanCacheDirectory();
break;
default:
break;
}
}
}
}