th

command module
v0.0.0-...-d4d3f2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 1 Imported by: 0

README

trash

A CLI tool for managing trash files

install

go install github.com/Beriholic/th@latest

usage

push file to trash
th push <file>
th push <file> <file> <file> ...

you can use p, ps, rm, remove instead of push

clean trash
th clean
list trash files
th list

it will list all files in trash

like this:

+-------------------------------------------------------+
| Trash List                                            |
+----+-----------+----------------+---------------------+
| ID | NAME      | PATH           | DELETIONDATE        |
+----+-----------+----------------+---------------------+
|  0 | 1.txt     | /tmp/1.txt     | 2023-11-18 22:23:06 |
|  1 | 2.txt     | /tmp/2.txt     | 2023-11-18 22:23:06 |
|  2 | 3.txt     | /tmp/3.txt     | 2023-11-18 22:23:06 |
|  3 | test_file | /tmp/test_file | 2023-11-18 22:23:06 |
+----+-----------+----------------+---------------------+

you can use ls, ll, l instead of list

restore file from trash
th restore <id>
th restore <id> <id> <id> ...

# Use an interactive menu
th restore

you can use r, rs, res instead of restore

delete file from trash
th del <id>
th del <id> <id> <id> ...

# Use an interactive menu
th del

you can use d instead of del

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL