{"id":28334964,"url":"https://github.com/iamarcel/dotnet-core-neat-console-starter","last_synced_at":"2026-01-17T09:10:28.473Z","repository":{"id":74347459,"uuid":"67582636","full_name":"iamarcel/dotnet-core-neat-console-starter","owner":"iamarcel","description":"Starter kit for neatly structured neat .NET Core Console / Command Line Apps","archived":false,"fork":false,"pushed_at":"2017-06-19T10:38:21.000Z","size":7,"stargazers_count":35,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T02:39:48.269Z","etag":null,"topics":["command-line","csharp","dotnet-core"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamarcel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-09-07T07:24:44.000Z","updated_at":"2024-07-25T23:23:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"52e72875-4fa8-4b8a-a2e4-6d5ab73cab38","html_url":"https://github.com/iamarcel/dotnet-core-neat-console-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamarcel/dotnet-core-neat-console-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamarcel%2Fdotnet-core-neat-console-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamarcel%2Fdotnet-core-neat-console-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamarcel%2Fdotnet-core-neat-console-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamarcel%2Fdotnet-core-neat-console-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamarcel","download_url":"https://codeload.github.com/iamarcel/dotnet-core-neat-console-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamarcel%2Fdotnet-core-neat-console-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","csharp","dotnet-core"],"created_at":"2025-05-26T21:54:04.667Z","updated_at":"2026-01-17T09:10:28.457Z","avatar_url":"https://github.com/iamarcel.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Core Neat Console Starter\n\nThis is a starting point for creating neatly structured .NET Core console apps\nin C#, using the `Microsoft.Extensions.CommandLineUtils` package to parse the\ncommands.\n\nI created this working as a student with [4DVision][1], who create custom\nsoftware for complex processes of companies and organizations.\n\n\n## Adding a command\n`GreetCommand` is an example of a command, see `Commands/GreetCommand.cs`.\n\n1. Create a new class for your command, eg. `Commands.ListCommand`\n2. Register the command in the `RootCommand` like this:\n\n```cs\napp.Command(\"list\", c =\u003e ListCommand.Configure(c, options));\n```\n\n3. Profit!\n\n\n## Adding a global option\n`IsEnthousiastic` is an example of a global option.\n\n1. Add the property to `CommandLineOptions`\n2. Add a call to `app.Option` or `app.Argument` in `CommandLineOptions.Parse`\n   and store the result\n3. Store the property in `options` at the bottom of `CommandLineOptions.Parse`\n\n\n## Learn more\n\n- Article: [Creating Neat .NET Core Console Apps][2]\n- Article: [Structuring Neat .NET Core Console Apps Neatly][3]\n\n[1]: http://www.4dvision.be\n[2]: https://gist.github.com/iamarcel/8047384bfbe9941e52817cf14a79dc34\n[3]: https://gist.github.com/iamarcel/9bdc3f40d95c13f80d259b7eb2bbcabb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamarcel%2Fdotnet-core-neat-console-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamarcel%2Fdotnet-core-neat-console-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamarcel%2Fdotnet-core-neat-console-starter/lists"}