A command-line interface tool for various file operations written in Go.
- File operations
- Copy files from source to destination
- Move files from source to destination
- Delete files
- Rename files
- Display detailed file information
- Directory operations (to be implemented)
- File content manipulation (to be implemented)
go install github.com/and/file_utility_cli@latestOn Windows, build with the .exe extension to avoid file association issues:
go build -o file-utility-cli.exeOn Linux/Mac:
go build -o file-utility-clifile-utility-cli [command] [flags]file copy [source] [destination]- Copy a file from source to destinationfile move [source] [destination]- Move a file from source to destinationfile delete [file]- Delete a filefile rename [old_name] [new_name]- Rename a filefile info [file]- Display detailed information about a filehelp- Help about any commandversion- Print the version number
# Windows
.\file-utility-cli.exe file copy test.txt output/copied-test.txt
# Linux/Mac
./file-utility-cli file copy test.txt output/copied-test.txt# Windows
.\file-utility-cli.exe file move test.txt output/moved-test.txt
# Linux/Mac
./file-utility-cli file move test.txt output/moved-test.txt# Windows
.\file-utility-cli.exe file info test.txt
# Linux/Mac
./file-utility-cli file info test.txtIf you're having issues with the CLI on Windows:
- Ensure the executable has a
.exeextension when building - If terminal issues occur, run in a new PowerShell instance:
powershell.exe -Command ".\file-utility-cli.exe [command]"
MIT License