-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonathan Dahan
committed
Sep 11, 2019
1 parent
ddadb7d
commit 19163dc
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ pub mod plugins; | |
use crate::identifier::Identifier; | ||
use crate::plugins::Plugins; | ||
|
||
const NAME: &str = env!("CARGO_PKG_NAME"); | ||
const VERSION: &str = env!("CARGO_PKG_VERSION"); | ||
|
||
/// We have three main commands | ||
/// | ||
/// `load`: download and print sourceable zsh to load scripts | ||
|
@@ -40,13 +43,13 @@ fn main() { | |
|
||
fn print_help() { | ||
println!(" | ||
zr {version} | ||
{name} {version} | ||
by Jonathan Dahan <[email protected]> | ||
zr help show help | ||
zr list list cached plugins | ||
zr update update plugin repositories | ||
zr load generate file to source from [http://example.com/]plugin/name[.git/path/to/file.zsh]", version=env!("CARGO_PKG_VERSION")) | ||
{name} help show help | ||
{name} list list cached plugins | ||
{name} update update plugin repositories | ||
{name} load generate file to source from [http://example.com/]plugin/name[.git/path/to/file.zsh]", version=VERSION, name=NAME) | ||
} | ||
|
||
/// Create plugins from an existing `load` output | ||
|