https://github.com/peteraritchie/cleaner
https://github.com/peteraritchie/cleaner
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/peteraritchie/cleaner
- Owner: peteraritchie
- Created: 2025-07-14T16:20:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-14T16:37:34.000Z (about 1 year ago)
- Last Synced: 2025-10-09T02:57:20.758Z (10 months ago)
- Language: C#
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pri.Cleaner
A CLI utility to recursively find all .csproj files within a directory and remove any `bin` or `obj` subdirectories (and contents), _cleaning_ the directory.
## Usage
```text
Description:
clean
Usage:
Pri.Cleaner [<--path>] [options]
Arguments:
The path to the directory to recurse and clean. [default: .]
Options:
--dry-run Only display what will be done if true.
--version Show version information
-?, -h, --help Show help and usage information
```
## Examples
Perform dry-run on currently directory, detailing what will be removed and how much space will be freed:
```powershell
Pri.Cleaner --dry-run
```
## Scaffolding
```powershell
md Pri.Cleaner
cd .\Pri.Cleaner\
dotnet new consoleapp -o Pri.Cleaner
ren .\Pri.Cleaner\ Cleaner
cd .\Cleaner\
dotnet new xunit -o Tests
dotnet reference add .\Cleaner\ --project Tests
dotnet new sln
dotnet sln add .\Cleaner\
dotnet sln add .\Tests\
dotnet new classlib --framework "net8.0" -o Pri.Cleaner.Core
ren Pri.Cleaner.Core Core
del .\Core\Class1.cs
dotnet sln add .\Core\
dotnet reference add .\Core\ --project .\Cleaner\
dotnet new gitignore
git init .
git add . ; git commit -m "initial commit"
gh repo create Cleaner --public --push --source .
```