{"id":28605913,"url":"https://github.com/rsm-hcd/AndcultureCode.CSharp.Cli","last_synced_at":"2025-06-11T19:08:28.372Z","repository":{"id":41623440,"uuid":"271546075","full_name":"rsm-hcd/AndcultureCode.CSharp.Cli","owner":"rsm-hcd","description":"Common utiltiies when build CSharp CLIs at andculture","archived":false,"fork":false,"pushed_at":"2022-04-29T11:44:35.000Z","size":145,"stargazers_count":1,"open_issues_count":5,"forks_count":4,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-11T11:49:34.815Z","etag":null,"topics":["cli","csharp","dotnet-core","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsm-hcd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-11T12:55:13.000Z","updated_at":"2022-05-17T01:03:49.000Z","dependencies_parsed_at":"2022-08-10T05:58:36.135Z","dependency_job_id":null,"html_url":"https://github.com/rsm-hcd/AndcultureCode.CSharp.Cli","commit_stats":null,"previous_names":["rsm-hcd/andculturecode.csharp.cli","andculturecode/andculturecode.csharp.cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rsm-hcd/AndcultureCode.CSharp.Cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsm-hcd%2FAndcultureCode.CSharp.Cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsm-hcd%2FAndcultureCode.CSharp.Cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsm-hcd%2FAndcultureCode.CSharp.Cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsm-hcd%2FAndcultureCode.CSharp.Cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsm-hcd","download_url":"https://codeload.github.com/rsm-hcd/AndcultureCode.CSharp.Cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsm-hcd%2FAndcultureCode.CSharp.Cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259320804,"owners_count":22840060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","csharp","dotnet-core","hacktoberfest"],"created_at":"2025-06-11T19:08:26.245Z","updated_at":"2025-06-11T19:08:28.366Z","avatar_url":"https://github.com/rsm-hcd.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndcultureCode.CSharp.Cli\n![build status](https://github.com/AndcultureCode/AndcultureCode.CSharp.Cli/actions/workflows/build.yaml/badge.svg)\n[![codecov](https://codecov.io/gh/AndcultureCode/AndcultureCode.CSharp.Cli/branch/main/graph/badge.svg)](https://codecov.io/gh/AndcultureCode/AndcultureCode.CSharp.Cli)\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\nCommonly used utilities when building CSharp CLIs for .NET Core C#\n\n## Getting Started\nThis package is installed via NuGet\n```\ndotnet add [\u003cPROJECT\u003e] package AndcultureCode.CSharp.Cli\n```\n\nAfter installation, simply import the extensions namespace to gain access\nto all of the available utilities.\n```csharp\nusing System;\nusing System.Collection.Generic;\nusing AndcultureCode.CSharp.Cli;\n\npublic class MyCommand : Command\n{\n    #region Protected Properties\n\n    protected override string _commandDescription =\u003e \"Top level command for that does something helpful\";\n\n    #endregion Protected Properties\n\n\n    #region Constructor\n\n    public MyCommand(\n        CommandLineApplication command,\n        IConfigurationRoot configurationRoot,\n        IServiceCollection serviceCollection\n    ) : base(command, configurationRoot, serviceCollection)\n    {\n    }\n\n    #endregion Constructor\n\n    #region Protected Methods\n\n    protected override void RegisterSubCommands()\n    {\n        _command.Command(\"mySubCommand\", cmd =\u003e new MySubCommand(cmd, _configurationRoot, _serviceCollection));\n    }\n\n    #endregion Protected Methods\n}\n```\n\n## Documentation\n\n[Full API Documentation](src/AndcultureCode.CSharp.Cli/AndcultureCode.CSharp.Cli.md)\n\n## Development Setup\n\n* Install Dotnet Core 2.x\n* Install the `and-cli` tooling found at [AndcultureCode.Cli](https://github.com/AndcultureCode/AndcultureCode.Cli)\n\nBelow are a few basics to get you started, but there are many more commands and options for managing this and other projects found in the `and-cli`.\n\n### Building project\n* Run the build command\n    ```\n    and-cli dotnet --build\n    ```\n\n### Running tests along with code coverage\n* Run the test command\n    ```\n    and-cli dotnet-test\n    ```\n* Open the `coverage/index.htm` file in your browser\n\n### Publishing a new version\n* Run the publish command with the next version number ([See semver package versioning](https://docs.microsoft.com/en-us/nuget/concepts/package-versioning))\n    ```\n    and-cli nuget --publish \u003cversion\u003e\n    ```\n\nContributing\n======\n\nInformation on contributing to this repo is in the [Contributing Guide](CONTRIBUTING.md)\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.winton.me/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/48424?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eWinton DeShong\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/AndcultureCode/AndcultureCode.CSharp.Cli/commits?author=wintondeshong\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/AndcultureCode/AndcultureCode.CSharp.Cli/commits?author=wintondeshong\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsm-hcd%2FAndcultureCode.CSharp.Cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsm-hcd%2FAndcultureCode.CSharp.Cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsm-hcd%2FAndcultureCode.CSharp.Cli/lists"}