poketest

Crates.iopoketest
lib.rspoketest
version1.5.1
sourcesrc
created_at2024-08-19 12:13:49.498012
updated_at2024-08-19 12:13:49.498012
descriptionDisplay pokemon sprites in your terminal.
homepagehttps://github.com/LuMarans30/pokeget-rs
repositoryhttps://github.com/LuMarans30/pokeget-rs
max_upload_size
id1343796
size48,480
Andrea Marano (LuMarans30)

documentation

https://github.com/LuMarans30/pokeget-rs

README

pokeget-rs

A better rust version of pokeget.

Usage

pokeget <pokemon>

for more info, run pokeget --help

Also, if you're using pokeget in your .bashrc, then instead of running pokeget <pokemon>, you can just write the output to a file by doing: pokeget <pokemon> > file.txt and then have something like cat file.txt bashrc.

You can also use multiple pokemon with names:

pokeget bulbasaur pikachu random

Or pokedex ID's:

pokeget 1 2 3

Installation

Cargo (recommended)

The recommended installation method is to use cargo:

cargo install pokeget

and making sure $HOME/.cargo/bin is added to $PATH.

AUR

If you're on Arch, you can also use the AUR:

yay -S pokeget

[!WARNING]
The AUR repository is currently unmaintained. If you'd like to maintain it, open an issue.

Git

You can also clone the repository and compile manually by doing:

git clone --recurse-submodules https://github.com/talwat/pokeget-rs.git
cd pokeget-rs
cargo build --release
mv target/release/pokeget ~/.local/bin

and making sure $HOME/.local/bin is added to $PATH.

Updating

Just rerun cargo install pokeget or git pull on the repository and then recompile.

Adding a directory to $PATH

Bash & Zsh

Append this to your .bashrc or .zshrc:

export PATH="<path>:$PATH"

Fish

Run this in your CLI:

fish_add_path <path>

Why?

Because the first pokeget was slow, bloated, and super complicated I decided to make a better version in rust.

Now, instead of precomputing all the sprites and uploading them to a repo, pokeget will be able to compute them on the fly which makes everything much more flexible while still retaining performance.

It will also draw the sprites 2x smaller by using half squares.

What about other projects?

pokeget-rs has an edge over projects like the old pokeget, pokeshell, etc... since it's in rust.

It also is significantly (5.5x) faster than krabby which is another very similar project.

For more info, go to OTHER_PROJECTS.md.

What about big sprites?

Gone. Reduced to atoms.

In all seriousness, i've just decided to not deal with them since it's extra work that I don't want to deal with.

Credits

This time, the sprites are from pokesprite and pokeget uses them with a submodule.

Sprites are embedded into the binary, so pokeget won't download them.

Commit count: 0

cargo fmt