Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bd2f29

Browse files
committed
Remove reference of pretty-cli in code tree (#215)
1 parent 51bf03f commit 4bd2f29

5 files changed

Lines changed: 7 additions & 11 deletions

File tree

src/plumbing-cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use anyhow::Result;
88

99
#[cfg(feature = "pretty-cli")]
1010
fn main() -> Result<()> {
11-
plumbing::pretty::main()
11+
plumbing::main()
1212
}
1313

1414
#[cfg(not(feature = "pretty-cli"))]
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ use clap::Parser;
1212
use gitoxide_core as core;
1313
use gitoxide_core::pack::verify;
1414

15-
use crate::{
16-
plumbing::pretty::options::{Args, Subcommands},
17-
shared::pretty::prepare_and_run,
18-
};
15+
use crate::plumbing::options::{Args, Subcommands};
16+
use crate::shared::pretty::prepare_and_run;
1917

2018
pub fn main() -> Result<()> {
2119
let args: Args = Args::parse();

src/plumbing/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
#[cfg(feature = "pretty-cli")]
2-
pub mod pretty;
1+
mod main;
2+
pub use main::main;
3+
4+
mod options;

src/plumbing/pretty/mod.rs

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)