package cli import ( "fmt" "io" "sevenkeys/database" ) var ( selectedCardPrintingSearchLine string copiesInserted int ) func getInfoDisplay(info string) string { if info == "" { return "[EMPTY]" } return info } func showStorageInfo(w io.Writer, area database.StorageArea) { fmt.Fprint(w, "Selected Storage Area: ") if area.Name == "" { // TODO: Add a struct method to determine whether it is unset? fmt.Fprint(w, "[None]\n") return } fmt.Fprintf(w, "%s (%s)\n", area.Name, area.StorageType) return } func showCopiesInserted() { fmt.Println("Copies inserted:", copiesInserted) }