#register #cargo #launcher #command-line-tool #binary #cli-tool #utility

app cargo-launcher

This CLI is a simple utility to register in lancher(alfred|hain|albert)

7 releases (2 stable)

1.0.1 Mar 6, 2019
1.0.0 Jan 22, 2019
0.4.0 Dec 29, 2018
0.3.0 Dec 26, 2018
0.1.0 Dec 11, 2018

#2548 in Command line utilities

MIT license

1MB
830 lines

cargo-launcher

Build Status Latest version Documentation License

If the cargo project is a binary crates, this tool can register the binary in the following launcher.

  • Alfred
    • Register as workflow
  • Hain
    • Register as devplugin
  • Albert
    • Register as Python extension

Demo

Alfred:

Preview

Installation

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.

Usage

Common

  • Install target CLI binary(not cargo-launcher)
$ 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}

Alfred workflow

  • Generate Alfredworkflow file
$ cargo launcher alfred
  • Install to Alfred

Hain plugin

  • Export to hain devplugin directory
$ cargo launcher hain
  • Restart Hain

Albert plugin

  • Export to albert module directory
$ cargo launcher albert
  • Check the checkbox of the python extension list and activate the setting

Option

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>

Dependencies

~18MB
~347K SLoC