diff options
| -rw-r--r-- | mling/build.rs | 4 | ||||
| -rw-r--r-- | mling/src/helps/mling_help.txt | 18 | ||||
| -rw-r--r-- | mling/src/proj_mgr/mod.rs | 3 |
3 files changed, 17 insertions, 8 deletions
diff --git a/mling/build.rs b/mling/build.rs index cec5b14..5e210eb 100644 --- a/mling/build.rs +++ b/mling/build.rs @@ -29,7 +29,7 @@ fn build_version_info() { // Get date from git commit, fallback to current date let date = Command::new("git") - .args(["log", "-1", "--format=%ad", "--date=format:%Y-%-m-%-d"]) + .args(["log", "-1", "--format=%ad", "--date=format:%Y-%m-%d"]) .output() .ok() .and_then(|output| { @@ -40,7 +40,7 @@ fn build_version_info() { } }) .map(|s| s.trim().to_string()) - .unwrap_or_else(|| chrono::Local::now().format("%Y-%-m-%-d").to_string()); + .unwrap_or_else(|| chrono::Local::now().format("%Y-%m-%d").to_string()); let version_string = format!("mling {version} ({commit_hash} {date})"); diff --git a/mling/src/helps/mling_help.txt b/mling/src/helps/mling_help.txt index 64a2f67..ba38439 100644 --- a/mling/src/helps/mling_help.txt +++ b/mling/src/helps/mling_help.txt @@ -3,12 +3,18 @@ Mingling's scaffolding tool [[b_green]]**Usage:**[[/]] [[b_cyan]]**cargo mling**[[/]] [[cyan]][COMMAND] [OPTIONS]...[[/]] [[b_green]]**Options:**[[/]] -__ [[b_cyan]]**-V**[[/]], [[b_cyan]]**--version**[[/]] Print version info and exit -__ [[b_cyan]]**-h**[[/]], [[b_cyan]]**--help**[[/]] Print this help message +__ [[b_cyan]]**-V**[[/]], [[b_cyan]]**--version**[[/]] Print version info and exit +__ [[b_cyan]]**-h**[[/]], [[b_cyan]]**--help**[[/]] Print this help message -__ [[b_cyan]]**--silence**[[/]], [[b_cyan]]**--quiet**[[/]] Suppress all output -__ [[b_cyan]]**--no-error**[[/]] Suppress error output -__ [[b_cyan]]**--no-result**[[/]] Suppress result output +__ [[b_cyan]]**-P**[[/]], [[b_cyan]]**--manifest-path**[[/]] Path to _Cargo.toml_ + +__ [[b_cyan]]**--silence**[[/]], [[b_cyan]]**--quiet**[[/]] Suppress all output +__ [[b_cyan]]**--no-error**[[/]] Suppress error output +__ [[b_cyan]]**--no-result**[[/]] Suppress result output [[b_green]]**Commands:**[[/]] -__ [[b_cyan]]**install**[[/]] Install +__ [[b_cyan]]**install**[[/]] Install current project into +__ the **mling** package manager +__ [[b_cyan]]**ls**[[/]], [[b_cyan]]**add**[[/]], [[b_cyan]]**rm**[[/]] List, add, or remove something + +Run \`[[b_cyan]]**cargo help mling**[[/]]\` for more detailed information. diff --git a/mling/src/proj_mgr/mod.rs b/mling/src/proj_mgr/mod.rs index 86c05e3..ebc47a6 100644 --- a/mling/src/proj_mgr/mod.rs +++ b/mling/src/proj_mgr/mod.rs @@ -1,3 +1,6 @@ use mingling::macros::dispatcher; dispatcher!("install"); + +dispatcher!("ls.namespace"); +dispatcher!("rm.namespace"); |
