ProfessionalUwU
04048c4cb9
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
17 lines
521 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
} |