/### /
/ ############/
/ #########
# / #
## / ##
/ ### ### /### /### /### ## #### /##
## ## ###/ #### / / ### / / ### / ## ### / / ###
## ## ## ###/ / ###/ / ###/ ## ###/ / ###
## ## ## ## ## ## ## ## ## ## ###
## ## ## ## ## ## ## ## ## ########
## ## ## ## ## ## ## ## ## #######
## # / ## ## ## ## ## ## ## ##
### / ## ## ## ## ## ## /# #### /
######/ ### ###### ######## ######/ ## ######/
### ### #### ### ### ##### ## #####
###
#### ###
/###### /#
/ ###/
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 listwill list all games in the librarytrogue list -f redemption -p 'i - n'will list games containing "redemption" in the name, and output game id and game name separated by hyphentrogue achievements 48700ortrogue achievements "fallout 4"will display achievements for a specific gametrogue achievements "fallout 4" -rwill display remaining locked achievements for a specific gametrogue dashboardwill display a dashboard with 10 last played games and their achievement progress
Run trogue --help for a full list of available commands and 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
If it complains about missing vendor folder, run:
cargo vendor
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
sudo apt install devscripts dput debhelper dh-cargo
./build-and-upload-to-ppa.sh
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
- List achievements by game name filter, display all matching games if multiple
- Dashboard with all 100% games
- Latest game dashboard - achievements progress, list remaining
- 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