docs(commit-msg): add usage, install sample
This commit is contained in:
@@ -7,6 +7,12 @@ use std::process::Command;
|
||||
/// Git commit message format check util
|
||||
///
|
||||
/// Commit format MUST be <type>(<scope>): subject
|
||||
///
|
||||
/// Usage:
|
||||
/// `commit-msg.crs usage`
|
||||
///
|
||||
/// Install:
|
||||
/// `commit-msg.crs install`
|
||||
fn main() {
|
||||
let arg1 = env::args().nth(1).unwrap_or_else(|| {
|
||||
exit_with_error_message("Commit message is EMPTY!");
|
||||
|
||||
Reference in New Issue
Block a user