Merge pull request #304 from cakebaker/mesg_move_uu_app_to_bottom
mesg: move `uu_app()` to bottom of file
This commit is contained in:
@@ -69,6 +69,17 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(target_family = "unix"))]
|
||||||
|
#[uucore::main]
|
||||||
|
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
|
let _matches: ArgMatches = uu_app().try_get_matches_from(args)?;
|
||||||
|
|
||||||
|
Err(uucore::error::USimpleError::new(
|
||||||
|
1,
|
||||||
|
"`mesg` is available only on Unix platforms.",
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
pub fn uu_app() -> Command {
|
pub fn uu_app() -> Command {
|
||||||
Command::new(uucore::util_name())
|
Command::new(uucore::util_name())
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
@@ -89,14 +100,3 @@ pub fn uu_app() -> Command {
|
|||||||
.action(ArgAction::Set),
|
.action(ArgAction::Set),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_family = "unix"))]
|
|
||||||
#[uucore::main]
|
|
||||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|
||||||
let _matches: ArgMatches = uu_app().try_get_matches_from(args)?;
|
|
||||||
|
|
||||||
Err(uucore::error::USimpleError::new(
|
|
||||||
1,
|
|
||||||
"`mesg` is available only on Unix platforms.",
|
|
||||||
))
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user