safe-trash

command module
v0.0.0-...-1edaf02 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 10 Imported by: 0

README

safe-trash

"safe-trash" is a safe way of running the rm command. Deleted files are moved to ~/.safe-trash folder from the current folder.

Usage

-l, --list      List the files under the current directory.
<FILE_NAME>     The filenames to be deleted. Multiple filename is allowed.
-h, --help      Displays this help message.

How to run?

Ensure that your Go variables set properly. If your go env variables are set properly, you can run sh install_go.sh or bash install_go.sh to use safe-trash as;

$ sh install_go.sh
$ safe-trash server.py

Or, you can;

$ go build -o $GOPATH/bin/safe-trash
$ safe-trash index.js

Inspiration

A simple replica of trash-cli written in Golang.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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