diff --git a/.goreleaser.yml b/.goreleaser.yml index a1fb601..18f7c3a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,12 +11,14 @@ builds: - CGO_ENABLED=0 goos: - linux + - windows - darwin - openbsd archives: - replacements: darwin: Darwin linux: Linux + windows: Windows openbsd: OpenBSD 386: i386 amd64: x86_64 @@ -73,7 +75,7 @@ brews: # Your app's description. # Default is empty. - description: "serra - I wrote a typing trainer to get into my ortholinear keyboard" + description: "serra - Personal Magic: The Gathering Collection Tracker " # SPDX identifier of your app's license. # Default is empty. diff --git a/Taskfile.yaml b/Taskfile.yaml index 2c2308a..e8cf059 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -12,6 +12,14 @@ tasks: generates: - "./serra" + release: + interactive: true + cmds: + - git tag | tail -5 + - read -p "Version v1.1.1 " version ; git tag $version + - git push --tags + - goreleaser release --rm-dist + default: cmds: - task: build diff --git a/imgs/add.png b/imgs/add.png index 8ba909f..09c3b7e 100644 Binary files a/imgs/add.png and b/imgs/add.png differ diff --git a/imgs/cards.png b/imgs/cards.png index f92cfbe..8393dc1 100644 Binary files a/imgs/cards.png and b/imgs/cards.png differ diff --git a/imgs/flops.png b/imgs/flops.png new file mode 100644 index 0000000..ccc0cfe Binary files /dev/null and b/imgs/flops.png differ diff --git a/imgs/set.png b/imgs/set.png index 2efbeae..cb503b1 100644 Binary files a/imgs/set.png and b/imgs/set.png differ diff --git a/imgs/sets.png b/imgs/sets.png index 4cc84cc..049a034 100644 Binary files a/imgs/sets.png and b/imgs/sets.png differ diff --git a/imgs/stats.png b/imgs/stats.png index 9f1ce3f..429d62c 100644 Binary files a/imgs/stats.png and b/imgs/stats.png differ diff --git a/imgs/tops.png b/imgs/tops.png index 34fa31f..c353b94 100644 Binary files a/imgs/tops.png and b/imgs/tops.png differ diff --git a/imgs/update.png b/imgs/update.png new file mode 100644 index 0000000..078ff88 Binary files /dev/null and b/imgs/update.png differ diff --git a/readme.md b/readme.md index 42e376f..fa08f16 100644 --- a/readme.md +++ b/readme.md @@ -88,16 +88,24 @@ Calculate some stats for all of your cards ## Tops -Show what cards/se gained most value +Show what cards/set gained most value ![](https://github.com/noqqe/serra/blob/main/imgs/tops.png) +## Flops + +Show what cards/set lost most value + +![](https://github.com/noqqe/serra/blob/main/imgs/flops.png) + ## Update The update mechanism iterates over each card in your collection and fetches its price. After all cards you own in a set are updated, the set value will update. After all Sets are updated, the whole collection value is updated. +![](https://github.com/noqqe/serra/blob/main/imgs/update.png) + ## Adding all those cards, manually? Yes. While there are serveral OCR/Photo Scanners for mtg cards, I found they @@ -121,12 +129,14 @@ read> 18 Its basically typing 2-3 digit numbers and hitting enter. I was way faster with this approach then Smartphone scanners. -# Install +# Development + +## Install go build . ./serra -# Cheatsheet Queries +## Cheatsheet Queries Find cards that increased prices @@ -155,7 +165,7 @@ Calculate what cards gained most value in percent db.cards.aggregate({$project: {set: 1, collectornumber:1, name: 1, "old": {$arrayElemAt: ["$serra_prices.value", -2]}, "current": {$arrayElemAt: ["$serra_prices.value", -1]} }}, {$match: {old: {$gt: 2}}} ,{$project: {name: 1,set:1,collectornumber:1,current:1, "rate": {$subtract: [{$divide: ["$current", {$divide: ["$old", 100]}]}, 100]} }}, {$sort: { rate: -1}}) -# MongoDB Operations +## MongoDB Operations A few commands that do backups and exports of your data inside of the docker container.