Skip to content

tanazd2-dev/cwget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

cwget

Overview

cwget is a minimal file operation tool that supports copy, move, and rename using simple flags. It also includes a lightweight path alias system using /// prefixes for faster navigation and scripting.

It behaves like standard system tools (cp, mv) but adds shorthand path expansion.


Features

  • Copy files and folders (cp -rf)
  • Move files (mv -f)
  • Rename files (mv -f)
  • Built-in path aliases:
    • ///r/
    • ///h$HOME
    • ///usr/usr or $PREFIX
    • ///envusr$SR
  • Silent execution (no extra output)
  • Direct system exit codes

Installation

chmod +x cwget

Optional system-wide install:

mv cwget /usr/local/bin/

Usage

Copy

cwget <source> -C <destination>

Example:

cwget ///h/file.txt -C ///h/backup/file.txt

Move

cwget <source> -M <destination>

Example:

cwget ///h/file.txt -M ///r/tmp/file.txt

Rename

cwget <source> -R <newname>

Example:

cwget ///h/old.txt -R ///h/new.txt

Path Aliases

Alias Expands To
///r /
///h $HOME
///usr /usr or $PREFIX
///envusr $SR

Behavior

  • No help messages or UI output
  • Overwrites files if required (system default behavior)
  • Exit codes:
    • 0 → success
    • non-zero → error from underlying system command

Philosophy

cwget is designed to be:

  • Minimal
  • Predictable
  • Script-friendly
  • Close to native system behavior

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages