Lineman traverses directory recursively and run command by conditions.
For example supposed there a many haskell projects with building files (like .stack-work or dist-newstyle) that take enormous space of disk. It takes time to purge them all manually. The lineman is able to carry out this job automatically. All you need is to configure lineman's config and run it.
git clone https://github.com/willbasky/lineman
cd lineman
And either
cabal install
lineman /path/to/toml/config/
Lineman uses dhall configuration. See Config example.
Action- a single command that run in a directory due to particularconditionsConditionsdescribe the directory has to have to runactionEntryPointis a parent directory wherelinemanstarts seeking fortargetsTargetis a directory that aligns toconditionSwarmis a bunch ofactionsthat match toconditionHiveis a collection ofswarms
- Both
actionsin aswarmandswarmsin ahivecan be run concurrently or successively - Both
actionsandswarmscan be interspersed with breaks Linemanstarts seekingtargetsfromentryPointrecursively and finds directories that have particular subdirectories, files or extensions. And then it runActionin foundtargets.
- Clear build artefact in bunch of projects.