commit 2df375c7f71da5d143231d39e83286e9629a7376 Author: Daryl Ronningen Date: Tue Nov 15 23:18:41 2022 -0800 Initial NetSD Project diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb1cef4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +bin +obj +.idea diff --git a/global.json b/global.json new file mode 100644 index 0000000..62ae288 --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "7.0.0", + "rollForward": "latestMajor", + "allowPrerelease": true + } +} diff --git a/netsd.sln b/netsd.sln new file mode 100644 index 0000000..915c2de --- /dev/null +++ b/netsd.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "netsd", "netsd\netsd.csproj", "{2A72A757-76F5-427C-B1DF-7E72EFE6780C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Release|x64 = Release|x64 + Debug|x64 = Debug|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Release|x64.ActiveCfg = Release|x64 + {2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Release|x64.Build.0 = Release|x64 + {2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Debug|x64.ActiveCfg = Debug|x64 + {2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Debug|x64.Build.0 = Debug|x64 + EndGlobalSection +EndGlobal diff --git a/netsd/Handlers/Daemon.cs b/netsd/Handlers/Daemon.cs new file mode 100644 index 0000000..a98325d --- /dev/null +++ b/netsd/Handlers/Daemon.cs @@ -0,0 +1,5 @@ +namespace netsd.Handlers; + +public class Daemon +{ +} diff --git a/netsd/Program.cs b/netsd/Program.cs new file mode 100644 index 0000000..6b50873 --- /dev/null +++ b/netsd/Program.cs @@ -0,0 +1,8 @@ +using System.CommandLine; + +var daemonCommand = new Command("init", "Run and bring up all default services"); + +var rootCommand = new RootCommand("Linux service manager written in C#"); +rootCommand.AddCommand(daemonCommand); + +return await rootCommand.InvokeAsync(args); diff --git a/netsd/netsd.csproj b/netsd/netsd.csproj new file mode 100644 index 0000000..274b92d --- /dev/null +++ b/netsd/netsd.csproj @@ -0,0 +1,37 @@ + + + + Exe + net7.0 + enable + enable + preview + 0.0.0.1 + 0.0.0.1 + Release;Debug + x64 + + true + Size + false + true + false + false + true + true + false + false + false + false + true + true + + + + + + + + + +