feat: use clap instead of custom Commands #3

Merged
aviac merged 5 commits from use-clap into main 2025-07-31 11:29:18 +00:00
Owner
  • add clap
  • clapify the previously existing commands
  • add !ping just for quick tests
  • add secrets via sops, the bot can be run with sops exec-env /secrets/bot.env 'cargo run -p soko-command-bot'
  • add nix shell script to run bot with secrets from sops via nix command
  • help string needed some extra cleanup, since raw clap help strings not only contain the commands but also USAGE and other junk
  • some more tracing and error handling via anyhow at some points
  • apply cargo clippy --fix
- add `clap` - `clap`ify the previously existing commands - add `!ping` just for quick tests - add secrets via sops, the bot can be run with `sops exec-env /secrets/bot.env 'cargo run -p soko-command-bot'` - add nix shell script to run bot with secrets from sops via nix command - help string needed some extra cleanup, since raw `clap` help strings not only contain the commands but also `USAGE` and other junk - some more `tracing` and error handling via `anyhow` at some points - apply `cargo clippy --fix`
krauterbaquette left a comment
Owner

Hier wurde richtig gekocht.
Hab nur mal am Handy drüber geschaut die clap integration sieht richtig nice aus!

Hier wurde richtig gekocht. Hab nur mal am Handy drüber geschaut die clap integration sieht richtig nice aus!
lorax approved these changes 2025-07-30 10:40:32 +00:00
lorax left a comment
Owner

Coole improvements!

Coole improvements!
aviac merged commit bfe70bba88 into main 2025-07-31 11:29:18 +00:00
aviac deleted branch use-clap 2025-07-31 11:29:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
solarpunk-kollektiv-dd/soko-command-bot!3
No description provided.