From 8201f2e2eedd483a15219f87c069bd9425fdd41e Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 23 Jul 2022 04:28:32 +0100 Subject: [PATCH] write down thta idea before i pass out --- docs/USAGE.md | 1 + src/args.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/USAGE.md b/docs/USAGE.md index 0a11bcf..66a9f03 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -17,6 +17,7 @@ Work it harder, make it better! | Update local repos/PKGBUILDs | `mlc pull/update` [all if left empty] | `--no-regen`: If `mode.repository.build_on_update` is `true`, Do not regenerate repository after package rebuild | | Create and/or open config file | `mlc conf` | | | Initialises repo/workspace based on config in mlc.toml | `mlc clone/init` | | +| Displays an info panel/overview of the current repo | `mlc info/status` | | ### Exit Codes diff --git a/src/args.rs b/src/args.rs index 14f7394..e6955b0 100644 --- a/src/args.rs +++ b/src/args.rs @@ -45,6 +45,10 @@ pub enum Operation { #[clap(name = "prune", aliases = & ["prune", "p"])] Prune, + /// Shows an info panel/overview about the current repository + #[clap(name = "info", aliases = & ["status", "s", "i"])] + Info, // TODO: Implement this + /// Pulls in git repositories from mlc.toml branching from current directory #[clap(name = "pull", aliases = & ["u"])] Pull {