Improve wording for check command

This commit is contained in:
Florian Baumann 2023-08-22 10:42:16 +02:00
parent f0e90350b9
commit ef33194e16

View File

@ -48,16 +48,16 @@ func checkCards(cards []string, detail bool) error {
// If Card is in collection, print yes. // If Card is in collection, print yes.
if len(co) >= 1 { if len(co) >= 1 {
c := co[0] c := co[0]
LogMessage(fmt.Sprintf("Yes - %s \"%s\" (%s, %.2f%s) is in your Collection", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()), "green") LogMessage(fmt.Sprintf("PRESENT %s \"%s\" (%s, %.2f%s)", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()), "green")
continue continue
} else { } else {
if detail { if detail {
// fetch card from scyrfall if --detail was given // fetch card from scyrfall if --detail was given
c, _ := fetchCard(setName, collectorNumber) c, _ := fetchCard(setName, collectorNumber)
LogMessage(fmt.Sprintf("No - %s \"%s\" (%s, %.2f%s) is not in your Collection.", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()), "red") LogMessage(fmt.Sprintf("MISSING %s \"%s\" (%s, %.2f%s)", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()), "red")
} else { } else {
// Just print, the card name was not found // Just print, the card name was not found
LogMessage(fmt.Sprintf("No \"%s\" is not in your Collection.", card), "red") LogMessage(fmt.Sprintf("MISSING \"%s\"", card), "red")
} }
} }
} }