/### /
/ ############/
/ #########
# / #
## / ##
/ ### ### /### /### /### ## #### /##
## ## ###/ #### / / ### / / ### / ## ### / / ###
## ## ## ###/ / ###/ / ###/ ## ###/ / ###
## ## ## ## ## ## ## ## ## ## ###
## ## ## ## ## ## ## ## ## ########
## ## ## ## ## ## ## ## ## #######
## # / ## ## ## ## ## ## ## ##
### / ## ## ## ## ## ## /# #### /
######/ ### ###### ######## ######/ ## ######/
### ### #### ### ### ##### ## #####
###
#### ###
/###### /#
/ ###/
Command line tool to view the Steam achievements.
sudo add-apt-repository ppa:hieropold/ppa
sudo apt update
sudo apt install trogue
Configuration is done through environment:
TROGUE_STEAM_API_KEYTROGUE_STEAM_ID
Some possible usage examples:
trogue -lwill list all games in the library, outputting game names onlytrogue -l redemption -p 'i - n'will list games containing "redemption" in the name, and output game id and game name separated by hyphentrogue -a 48700will display achievements for a specific game
Run trogue -h for a full list of available options.
Trogue supports shell completion for bash and zsh. This enables tab completion for commands and their options.
# Generate completion script and append to ~/.bashrc
echo '# trogue completion' >> ~/.bashrc
trogue completions bash >> ~/.bashrc
# Reload bash completion
source ~/.bashrc# Generate completion script
trogue completions zsh > ~/.zsh/completions/_trogue
# Add to ~/.zshrc if not already present:
# fpath=(~/.zsh/completions $fpath)
# Reload zsh completion
source ~/.zshrcAfter installation, you can use tab completion:
trogue <Tab> # Shows: achievements completions dashboard list progress
trogue ac<Tab> # Autocompletes to: trogue achievements
trogue list --<Tab> # Shows available options: --filter --pattern --helpTo build the tool:
cargo build
cargo build --release
or
cargo run
To format code:
cargo fmt
To run linting:
cargo clippy
Run the tests:
cargo test
cargo test -- --nocapture
Run the tests with coverage.
cargo tarpaulin --out Html -- --test-threads=1
https://developer.valvesoftware.com/wiki/Steam_Web_API
https://andshrew.github.io/PlayStation-Trophies/#/APIv2
- Log in on https://www.playstation.com/sr-rs/
- Get token on https://ca.account.sony.com/api/v1/ssocookie
- Use it in requests
- Achievement card - name, status, date, progress
- CLI mode additionally to interactive mode
- Game name tab completion in CLI mode
- Game name search with typeahead in interactive mode
- Add support for PSN
- Add support for Xbox
To create a Debian package and upload it to a Launchpad PPA:
./build-and-upload-to-ppa.sh