Crates.io | cargo-launcher |
lib.rs | cargo-launcher |
version | 1.0.1 |
source | src |
created_at | 2018-12-11 11:41:28.194375 |
updated_at | 2019-03-06 12:50:06.825563 |
description | This CLI is a simple utility to register in lancher(alfred|hain|albert). |
homepage | |
repository | https://github.com/watawuwu/cargo-launcher |
max_upload_size | |
id | 101423 |
size | 1,013,653 |
If the cargo project is a binary crates, this tool can register the binary in the following launcher.
Alfred:
cargo-launcher can be installed with cargo install:
$ cargo install cargo-launcher
To upgrade:
$ cargo install --force cargo-launcher
The resulting binary should then be in $HOME/.cargo/bin.
Or download binary from gthub release page.
$ cd {your binary crates project}
# Install to local, or manually install
# The script path is set as follows
# PATH=$HOME/.cargo/bin:$HOME/.local/bin:/usr/local/bin:$PATH
$ cargo install --path .
...
Installing /Users/watawuwu/.cargo/bin/{your-binary}
$ cargo launcher alfred
$ cargo launcher hain
Restart Hain
$ cargo launcher albert
This CLI is a simple utility to register in lancher(alfred or hain).
USAGE:
cargo launcher [OPTIONS] <launcher>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-b, --bin <bin_name>
-i, --icon <icon_path>
ARGS:
<launcher>