Skip to content

Releases: visavi/cleanup

Version 2.2.0

Choose a tag to compare

@visavi visavi released this 14 Jun 01:33
v2.2.0

fix version and examples

Version 2.1.0

Choose a tag to compare

@visavi visavi released this 14 Jun 01:18

fix: clean files in a flat target directory

  • expandTree() only returned subdirectories, so a --path pointing at a
    flat directory (no subdirs, e.g. nesbot/carbon/src/Carbon/Lang)
    matched nothing and deleted 0 files; prepend the root path itself so
    its direct entries are scanned too
  • quote glob patterns in the readme and --help examples (unquoted
    *.php is expanded by the shell, and zsh aborts on no-match)
  • readme: add an example for stripping a flat directory

Version 2.0.0

Choose a tag to compare

@visavi visavi released this 13 Jun 01:01

Harden deletion safety, modernize to PHP 8.0

  • skip symlinks in traversal and deletion: composer path repos
    no longer lose source files through linked packages
  • refuse to run outside vendor (autoload.php check), exit(1)
    prevented sweeping deletes when run from a repo checkout
  • drop GLOB_BRACE: fatal on Alpine/musl; split {,.}*.yml into
    plain patterns
  • patterns: remove .xml (runtime XML risk) and dead travis,
    .scrutinizer; add .yaml, .cache, .php-cs-fixer, .DS_Store,
    dockerfile
    , docker-compose
    and other modern junk
  • nonzero exit codes on errors, drop usleep delay

BREAKING CHANGE: requires PHP >= 8.0 (was >= 5.4)

Version 1.5.2

Choose a tag to compare

@visavi visavi released this 08 Dec 17:00
v1.5.2

remove package.* from pattern

Version 1.5.1

Choose a tag to compare

@visavi visavi released this 08 Dec 16:37
v1.5.1

add filter *.neon and .phpstorm.meta.php

version 1.5.0

Choose a tag to compare

@visavi visavi released this 10 Jan 13:19

Added params verbose, dry and path
--verbose (-v) - Increase the verbosity of messages
--path (-p) - Find on specific path
--dry (-d) - Run without actual remove

Version 1.4

Choose a tag to compare

@visavi visavi released this 21 May 15:18
v1.4

delete json in patterns

Version 1.3

Choose a tag to compare

@visavi visavi released this 24 Oct 13:52
v1.3

fix bugs

Version 1.2

Choose a tag to compare

@visavi visavi released this 23 Oct 16:54
v1.2

added case insensitive search

version 1.1

Choose a tag to compare

@visavi visavi released this 12 Jan 13:55
v1.1

include exclude patterns