asaru 0.3.1

Asana Tasks Search CLI
asaru-0.3.1 is not a library.

Asaru

crates.io CI license

Asaru (漁る - look for) is CLI to search Asana Tasks, by which you can do the interactive-search.

Install

You can install asaru with the following:

$ cargo install asaru

Usage

$ asaru --help
asaru 0.3.1
Asana Tasks Search CLI

USAGE:
    asaru <workspace_gid> <pats> [file]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <workspace_gid>    Globally unique identifier for the workspace or organization
    <pats>             Personal Access Tokens (PATs)
    <file>             Output file

Key Manual

Key Explanation
Ctrl-c Exit asaru command.
Ctrl-s Move to Search Mode.
TAB Select(check/uncheck) search results.
Enter Search tasks if the cursor is at the prompt. Get task URLs if the cursor is at search results.
Backspace / Ctrl-h Delete the character to the left of the cursor if the cursor is at the prompt.
← / Ctrl-b Move the cursor left.
→ / Ctrl-f Move the cursor right.
↓ / Ctrl-n Move the cursor down.
↑ / Ctrl-p Move the cursor up.
Ctrl-a Move the cursor to the beginning of the text line.
Ctrl-e Move the cursor to the end of the text line.
Ctrl-k Delete all the text from the current cursor position to the end of the line if the cursor is at the prompt.

Settings

You can read descriptions about Workspaces:

You can get all your accessible workspace IDs:

You can issue your PATs:

$ mkdir $HOME/.asaru

$ echo -n $WORKSPACE_GID > $HOME/.asaru/workspace_gid

$ echo -n $PATS > $HOME/.asaru/pats

$ echo "alias asaru='asaru \$(cat \$HOME/.asaru/workspace_gid) \$(cat \$HOME/.asaru/pats) \$HOME/.asaru/tmp && cat \$HOME/.asaru/tmp | xargs open && rm -f \$HOME/.asaru/tmp'" >> $HOME/.bashrc

$ source $HOME/.bashrc

License

Licensed under either of