Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose mode #14

Open
karbassi opened this issue Jun 22, 2017 · 4 comments
Open

Verbose mode #14

karbassi opened this issue Jun 22, 2017 · 4 comments

Comments

@karbassi
Copy link

It would be useful to have a flag for verbose mode.

$ trash -v unicorn.png rainbow.png
removed 'unicorn.png'
removed 'rainbow.png'

Usage

$ trash --help

  Usage
    $ trash [flags] <path|glob> [...]

  Examples
    $ trash unicorn.png rainbow.png
    $ trash '*.png' '!unicorn.png'
    $ trash -v unicorn.png rainbow.png
@sindresorhus
Copy link
Owner

Why?

@karbassi
Copy link
Author

When used in a script (e.g. a bash script), it would be nice to see the output of the file being deleted.

A workaround would be to echo that the file was deleted, but why not match the rm verbose flag?

@sindresorhus
Copy link
Owner

Alright

@pmpontes
Copy link

pmpontes commented Jun 5, 2018

Hi!
I've worked on this enhancement and I think my solution is pretty much good to go.
I've also taken testing into consideration and should be doing a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants