aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2022-02-15 18:27:30 +0000
committerdiogo464 <[email protected]>2022-02-15 18:27:30 +0000
commit00e94787e0e473f733b15da24ebe64ed0f595a9e (patch)
treecbcf21bdcaf67a54f88aa4b6be7f7d708fa00725 /src/main.rs
parent4b524a27edb8cd51f04bfc9bd79dfd17ab31003b (diff)
improved status command
allow specifying the paths that the status should be printed for instead of displaying everything
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 132b418..acd0e38 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -214,10 +214,13 @@ fn command_mv(global_flags: Flags, args: MvArgs) -> anyhow::Result<()> {
214 214
215/// Shows information about links 215/// Shows information about links
216#[derive(Parser, Debug)] 216#[derive(Parser, Debug)]
217struct StatusArgs {} 217struct StatusArgs {
218 #[clap(default_value = ".")]
219 paths: Vec<PathBuf>,
220}
218 221
219fn command_status(global_flags: Flags, _args: StatusArgs) -> anyhow::Result<()> { 222fn command_status(global_flags: Flags, args: StatusArgs) -> anyhow::Result<()> {
220 let dotup = utils::read_dotup(&global_flags)?; 223 let dotup = utils::read_dotup(&global_flags)?;
221 dotup.status(); 224 dotup.status(args.paths.into_iter());
222 Ok(()) 225 Ok(())
223} 226}