packages feed

stack-clean-old 0.4 → 0.4.1

raw patch · 4 files changed

+39/−9 lines, 4 files

Files

ChangeLog.md view
@@ -1,5 +1,8 @@ # Release history for stack-clean-old-work +## 0.4.1 (2021-10-05)+- --help now mentions --delete and a link to README+ ## 0.4 (2021-09-26) - dryrun is now default: use --delete for actual removal   (suggested by @andreasabel #6)
README.md view
@@ -4,9 +4,9 @@ snapshot builds and ghc versions to recover diskspace.  ## Usage-```-stack-clean-old [size|list|remove|keep-minor|purge-older|delete-work] [(-p|--project) | (-g|--ghc)] [--delete] [GHCVER]-```+`stack-clean-old [size|list|remove|keep-minor|purge-older|delete-work] [-d|--delete] [(-p|--project) | (-g|--ghc)] [GHCVER]+`+ Options:  - `--project` (default in a stack project dir): act on `.stack-work/install/`@@ -42,16 +42,17 @@  ### Example usage To remove project builds for ghc-8.2.2:-```+```ShellSession $ stack-clean-old list 154M  8.2.2  (5 dirs) 154M  8.4.4  (5 dirs) 163M  8.6.5  (5 dirs) $ stack-clean-old remove --delete -p 8.2.2+: ```  Remove stack ghc-8.4 snapshot builds and compilers before 8.4.4:-```+```ShellSession $ stack-clean-old list -g 8.4 421M  8.4.1  (7 dirs) 368M  8.4.2  (6 dirs)@@ -83,8 +84,34 @@ (seems same as `stack clean --full`).  `stack-clean-old delete-work --all` works from outside stack projects:-please use with care.+please use with care with `--delete`. +### Help output+(Note you can also run this tool via `stack clean-old`.)++To get help you can run `stack-clean-old --help` or just:+```ShellSession+$ stack-clean-old+Stack clean up tool++Usage: stack-clean-old [--version] COMMAND+  Cleans away old stack-work builds (and pending: stack snapshots) to recover+  diskspace. Use the --delete option to perform actual removals.+  https://github.com/juhp/stack-clean-old#readme++Available options:+  -h,--help                Show this help text+  --version                Show version++Available commands:+  size                     Total size+  list                     List sizes per ghc version+  remove                   Remove for a ghc version+  keep-minor               Remove for previous ghc minor versions+  purge-older              Purge older builds in .stack-work/install+  delete-work              Remove project's .stack-work subdirs recursively+```+ ## Installation  Run `stack install` or `cabal install`@@ -101,7 +128,7 @@  Project: https://github.com/juhp/stack-clean-old -## Warning disclaimer+## Disclaimer Use at your own risk: the author takes no responsibility for any loss or damaged caused by using this tool. 
src/Main.hs view
@@ -31,7 +31,7 @@ main = do   hSetBuffering stdout NoBuffering   simpleCmdArgs (Just version) "Stack clean up tool"-    "Cleans away old stack-work builds (and pending: stack snapshots) to recover diskspace." $+    "Cleans away old stack-work builds (and pending: stack snapshots) to recover diskspace. Use the --delete option to perform actual removals. https://github.com/juhp/stack-clean-old#readme" $     subcommands     [ Subcommand "size" "Total size" $       sizeCmd <$> modeOpt <*> recursionOpt <*> notHumanOpt
stack-clean-old.cabal view
@@ -1,5 +1,5 @@ name:                stack-clean-old-version:             0.4+version:             0.4.1 synopsis:            Clean away old stack build artefacts description:         A tool for removing old .stack-work/install builds and