2023-06-03 22:53:27 +02:00
|
|
|
|
using Pacserver.Utils;
|
|
|
|
|
|
|
|
|
|
public class Program {
|
2023-06-03 09:35:43 +02:00
|
|
|
|
static void Main(string[] args) {
|
|
|
|
|
if (args.Length == 0) {
|
|
|
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
|
|
|
Console.WriteLine("Please specify an option.");
|
|
|
|
|
Console.ResetColor();
|
2023-06-04 22:55:31 +02:00
|
|
|
|
Console.WriteLine("Possible options are: determinePacmanCacheDirectory");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (args[0]) {
|
|
|
|
|
case "determinePacmanCacheDirectory":
|
2023-06-12 02:19:07 +02:00
|
|
|
|
PacserverUtils utils = new PacserverUtils();
|
|
|
|
|
utils.readPacmanConfig();
|
|
|
|
|
Console.WriteLine(utils.pacmanCacheDirectory);
|
2023-06-04 22:55:31 +02:00
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
|
|
|
Console.WriteLine(args[0] + " is not a recognized option.");
|
|
|
|
|
Console.ResetColor();
|
|
|
|
|
Console.WriteLine("Possible options are: determinePacmanCacheDirectory");
|
|
|
|
|
break;
|
2023-06-03 09:35:43 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-05-27 18:32:46 +02:00
|
|
|
|
}
|