Java Developer

ot-clean, Cascade and arguments

The ot-clean is not deleting any files by default. It means, when you run ot-clean, it is going to list files that eventually might go away. If you’re happy with the list of directories to remove, you can use -d switch to actually remove those files:

ot-clean -d

By default ot-clean command is trying to clean only a project in the current directory. You can traverse all nested directories (look for all nested .clean.yml) files by simply providing -r switch. This behaves similarly to the .gitignore. It is especially helpful when you have multiple projects and want to clean up all of them at once.

In other words to make your work directory clean again, you can run:

ot-clean -r -d

… and let the magic happen for you.

The ot-clean series

This blog post is one of the series about the ot-clean. Simple open source tool that maintains your projects directories cleaned from all the garbage. Feel free to look at the source code or readme page for more information. You can also submit pull request or post suggestion. This text participates in open source blogging competition.

Project status

Build Status

All posts from the ot-clean series

Like it? Share it on , , ,

About the author

Grzegorz Gajos, Software Architect with international consulting and programming background. Co-founder of Open Tangerine Software House. Quality evangelist. An experienced entrepreneur, out of the box thinker and problem solver.