Skip to content

kanand003/File_Utility_CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Utility CLI

A command-line interface tool for various file operations written in Go.

Features

  • 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)

Installation

go install github.com/and/file_utility_cli@latest

Building from Source

On Windows, build with the .exe extension to avoid file association issues:

go build -o file-utility-cli.exe

On Linux/Mac:

go build -o file-utility-cli

Usage

file-utility-cli [command] [flags]

Available Commands

  • file copy [source] [destination] - Copy a file from source to destination
  • file move [source] [destination] - Move a file from source to destination
  • file delete [file] - Delete a file
  • file rename [old_name] [new_name] - Rename a file
  • file info [file] - Display detailed information about a file
  • help - Help about any command
  • version - Print the version number

Example: Copy Files

# 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

Example: Move Files

# 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

Example: Get File Information

# Windows
.\file-utility-cli.exe file info test.txt

# Linux/Mac
./file-utility-cli file info test.txt

Troubleshooting

If you're having issues with the CLI on Windows:

  1. Ensure the executable has a .exe extension when building
  2. If terminal issues occur, run in a new PowerShell instance:
    powershell.exe -Command ".\file-utility-cli.exe [command]"
    

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages