mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #5211 from tertsdiepraam/nushell-expose-uucore-args
`cp`: re-export `uucore::{BackupMode, UpdateMode}`
This commit is contained in:
commit
e4ea64af5c
1 changed files with 4 additions and 2 deletions
|
@ -30,14 +30,16 @@ use libc::mkfifo;
|
||||||
use quick_error::ResultExt;
|
use quick_error::ResultExt;
|
||||||
|
|
||||||
use platform::copy_on_write;
|
use platform::copy_on_write;
|
||||||
use uucore::backup_control::{self, BackupMode};
|
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{set_exit_code, UClapError, UError, UResult, UUsageError};
|
use uucore::error::{set_exit_code, UClapError, UError, UResult, UUsageError};
|
||||||
use uucore::fs::{
|
use uucore::fs::{
|
||||||
canonicalize, is_symlink_loop, paths_refer_to_same_file, FileInformation, MissingHandling,
|
canonicalize, is_symlink_loop, paths_refer_to_same_file, FileInformation, MissingHandling,
|
||||||
ResolveMode,
|
ResolveMode,
|
||||||
};
|
};
|
||||||
use uucore::update_control::{self, UpdateMode};
|
use uucore::{backup_control, update_control};
|
||||||
|
// These are exposed for projects (e.g. nushell) that want to create an `Options` value, which
|
||||||
|
// requires these enum.
|
||||||
|
pub use uucore::{backup_control::BackupMode, update_control::UpdateMode};
|
||||||
use uucore::{
|
use uucore::{
|
||||||
crash, format_usage, help_about, help_section, help_usage, prompt_yes, show_error,
|
crash, format_usage, help_about, help_section, help_usage, prompt_yes, show_error,
|
||||||
show_warning, util_name,
|
show_warning, util_name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue