Skip to content

Commit

Permalink
Merge pull request #5211 from tertsdiepraam/nushell-expose-uucore-args
Browse files Browse the repository at this point in the history
`cp`: re-export `uucore::{BackupMode, UpdateMode}`
  • Loading branch information
cakebaker committed Aug 28, 2023
2 parents 1f081f3 + ab859f4 commit e4ea64a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/uu/cp/src/cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ use libc::mkfifo;
use quick_error::ResultExt;

use platform::copy_on_write;
use uucore::backup_control::{self, BackupMode};
use uucore::display::Quotable;
use uucore::error::{set_exit_code, UClapError, UError, UResult, UUsageError};
use uucore::fs::{
canonicalize, is_symlink_loop, paths_refer_to_same_file, FileInformation, MissingHandling,
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::{
crash, format_usage, help_about, help_section, help_usage, prompt_yes, show_error,
show_warning, util_name,
Expand Down

0 comments on commit e4ea64a

Please sign in to comment.