gxclean

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 4 Imported by: 0

README

gxclean

gxclean is a File and Directory Deletion Tool

This tool is a simple CLI (Command Line Interface) tool written in Go that searches for and deletes files or directories with a specific name.

Installation

go install github.com/cancue/gxclean@latest

Usage

gxclean -n <name> [-d] [-f]
  • -n: Specifies the name to delete. All files and directories with this name are targeted.
  • -d: If this option is used, only directories are targeted.
  • -f: If this option is used, only files are targeted.

The -d and -f options cannot be used at the same time. You must choose one of them.

Example

gxclean -n test -d

The above command searches for and deletes all directories named 'test'.

Caution

This tool actually deletes files and directories. Therefore, please make sure to back up before using it. The tool displays a confirmation message before proceeding with the deletion, and deletion only proceeds if 'y' is entered.

License

This project is distributed under the MIT license. For more details, please refer to the LICENSE file.

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