6 Commits

Author SHA1 Message Date
5a09db7423 Change formatting to spaces 2023-06-03 09:35:43 +02:00
281b6f01a2 Add formating rules 2023-06-03 08:51:24 +02:00
64100065c9 Add method stubs 2023-05-27 19:18:45 +02:00
d4dc405b2b Begin commandline arguments 2023-05-27 18:32:46 +02:00
22ffc338e7 Add compile flags 2023-05-27 18:17:50 +02:00
00b50f0601 Start project pacserver 2023-05-27 18:04:13 +02:00
5 changed files with 82 additions and 0 deletions

26
.editorconfig Normal file
View File

@ -0,0 +1,26 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
# C# files
[*.cs]
# Indentation and spacing
indent_size = 4
indent_style = space
tab_width = 4
# Naming Conventions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# New line preferences
csharp_new_line_before_open_brace = none
csharp_new_line_before_else = false
csharp_new_line_before_catch = false
csharp_new_line_before_finally = false
# Wrapping preferences
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true
# Switch case
csharp_indent_case_contents = true

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.vscode/
obj/
bin/

16
Program.cs Normal file
View File

@ -0,0 +1,16 @@
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 "":
break;
default:
break;
}
}
}
}

23
pacserver.cs Normal file
View File

@ -0,0 +1,23 @@
public class Pacserver {
public static string pacmanCacheDirectory { get; set; } = string.Empty;
public static string determinePacmanCacheDirectory() {
return pacmanCacheDirectory;
}
public static string pacmanDatabaseDirectory { get; set; } = string.Empty;
public static string determinePacmanDatabaseDirectory() {
return pacmanDatabaseDirectory;
}
public static void checkForNewerPackagesAndDatabases() {
}
public static void transferPacmanCache() {
}
public static void transferPacmanDatabases() {
}
}

14
pacserver.csproj Normal file
View File

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>
</Project>