guywaldman / magic-cli

Command line utility to make you a magician in the terminal
https://guywaldman.com/posts/introducing-magic-cli
MIT License
725 stars 18 forks source link

Add search subcommand #13

Closed guywaldman closed 4 months ago

guywaldman commented 4 months ago

This PR adds the magic-cli search subcommand which previously partially worked, but:

  1. Did not propagate errors correctly (true for all subcommands), hence the new MagicCliSubcommand trait which is introduced, which allows to run any subcommand and print its error afterwards in mcli.rs
  2. Did not filter similarity thresholds