You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #4 from thrly/implement-argparse
This PR adds:
Refactored interface using argparse to better manage subcommands (rather than previous complicated use of argv). This also enabled some better logic handing for the program via the subcommand handler functions.
Clarified focus of app somewhat to viewing aggregate stats for MTG sets / search lists
Updated CLI commands (now setlist, set, search)
setlist now finds the 'current' release (i.e. the set most recently released) and will give stats for it with scry set latest
Adds a stat chart for colour distribution comparisons.
By default, search results now include all unique prints of cards, not just the unique card (i.e. it now shows variation prints in the numbers)
Documentation improvements made both to README, and through the cli --help
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,19 @@ Clone and install with `pipx install scry`
8
8
9
9
## use
10
10
11
-
- Draw a random card and add it to your database with `scry random`
12
-
- Get a list of cards based on a scryfall [search query](https://scryfall.com/docs/syntax) and add them to your database:
13
-
-`scry list "set:blb"` returns unique cards from the Bloomburrow set and shows stats for that list.
14
-
- Request a list of set releases with: `scry setcodes`
15
-
- Return stats for your entire database: `scry stats`
16
-
- (Optional:) Clear your database: `scry clear`
11
+
- Request a reference list of set releases with: `scry setlist`
12
+
- Get stats for a specific set:
13
+
-`scry set BLB` returns all cards from the _Bloomburrow_ set
14
+
-`scry set latest` finds the most recent release.
15
+
- Get stats for cards based on a scryfall [search query](https://scryfall.com/docs/syntax):
16
+
-`scry search id:orzhov type:land legal:modern` returns all unique Orzhov Land cards that are legal in Modern format, and shows stats for that list.
17
+
- Get help with `scry --help`
18
+
19
+
### local database
20
+
21
+
Scry creates a local sqlite database and adds your queried cards to it. This means you can build a larger collection of cards by executing multiple searches, and then view stats for the entire database with `scry stats`
22
+
23
+
To clear your database (for instance, to start a fresh collection to view stats on), run `scry clear` and confirm at the prompt.
0 commit comments