1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

Merge pull request #3840 from tertsdiepraam/dir-vdir-fix-docs

`dir` & `vdir`: fix docs not showing up on the documentation website
This commit is contained in:
Sylvestre Ledru 2022-08-18 11:38:11 +02:00 committed by GitHub
commit f35dbd112b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ use uucore::quoting_style::{Quotes, QuotingStyle};
#[uucore::main]
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let command = uu_ls::uu_app();
let command = uu_app();
let matches = command.get_matches_from(args);
@ -64,7 +64,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
// To avoid code duplication, we reuse ls uu_app function which has the same
// arguments. However, coreutils won't compile if one of the utils is missing
// an uu_app function, so we need this dummy one.
// an uu_app function, so we return the `ls` app.
pub fn uu_app<'a>() -> Command<'a> {
Command::new(uucore::util_name())
uu_ls::uu_app()
}

View file

@ -13,7 +13,7 @@ use uucore::quoting_style::{Quotes, QuotingStyle};
#[uucore::main]
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let command = uu_ls::uu_app();
let command = uu_app();
let matches = command.get_matches_from(args);
let mut default_quoting_style = false;
@ -64,5 +64,5 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
// arguments. However, coreutils won't compile if one of the utils is missing
// an uu_app function, so we need this dummy one.
pub fn uu_app<'a>() -> Command<'a> {
Command::new(uucore::util_name())
uu_ls::uu_app()
}