cloudius-systems / mgmt

20 stars 11 forks source link

CLI: add mv command #37

Open tzach opened 10 years ago

tzach commented 10 years ago

a command for moving a file/dir, compatible with linux semantic:

mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...

The following subset of options are useful: -f, --force do not prompt before overwriting -i, --interactive prompt before overwrite -t, --target-directory=DIRECTORY move all SOURCE arguments into DIRECTORY -T, --no-target-directory treat DEST as a normal file -u, --update move only when the SOURCE file is newer than the destination file or when the destination file is missing --help display this help and exit

tzach commented 10 years ago

can be base on #11