1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 19:36:16 +00:00

mv: move help strings to markdown file

This commit is contained in:
Piotr Kwiecinski 2023-03-23 14:30:17 +01:00
parent 2db88f1f26
commit 0768c63361
2 changed files with 13 additions and 6 deletions

10
src/uu/mv/mv.md Normal file
View file

@ -0,0 +1,10 @@
# mv
```
mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...
```
Move `SOURCE` to `DEST`, or multiple `SOURCE`(s) to `DIRECTORY`.

View file

@ -25,7 +25,7 @@ use std::path::{Path, PathBuf};
use uucore::backup_control::{self, BackupMode}; use uucore::backup_control::{self, BackupMode};
use uucore::display::Quotable; use uucore::display::Quotable;
use uucore::error::{FromIo, UError, UResult, USimpleError, UUsageError}; use uucore::error::{FromIo, UError, UResult, USimpleError, UUsageError};
use uucore::{format_usage, prompt_yes, show}; use uucore::{format_usage, help_about, help_usage, prompt_yes, show};
use fs_extra::dir::{ use fs_extra::dir::{
get_size as dir_get_size, move_dir, move_dir_with_progress, CopyOptions as DirCopyOptions, get_size as dir_get_size, move_dir, move_dir_with_progress, CopyOptions as DirCopyOptions,
@ -53,12 +53,9 @@ pub enum OverwriteMode {
Force, Force,
} }
static ABOUT: &str = "Move SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY."; static ABOUT: &str = help_about!("mv.md");
static LONG_HELP: &str = ""; static LONG_HELP: &str = "";
const USAGE: &str = "\ const USAGE: &str = help_usage!("mv.md");
{} [OPTION]... [-T] SOURCE DEST
{} [OPTION]... SOURCE... DIRECTORY
{} [OPTION]... -t DIRECTORY SOURCE...";
static OPT_FORCE: &str = "force"; static OPT_FORCE: &str = "force";
static OPT_INTERACTIVE: &str = "interactive"; static OPT_INTERACTIVE: &str = "interactive";