Data update

This commit is contained in:
Ingy döt Net 2024-03-06 22:25:12 -08:00
parent ed705008a8
commit 0df55f9f24
2196 changed files with 32999 additions and 3075 deletions

View file

@ -1,14 +1,14 @@
/* simdb.wren */
/* Simple_database.wren */
import "os" for Process
import "/ioutil" for File, FileFlags, FileUtil
import "/trait" for Comparable
import "/iterate" for Reversed
import "/date" for Date
import "/sort" for Sort
import "/str" for Str
import "./ioutil" for File, FileFlags, FileUtil
import "./trait" for Comparable
import "./iterate" for Reversed
import "./date" for Date
import "./sort" for Sort
import "./str" for Str
var fileName = "simdb.csv"
var fileName = "Simple_database.csv"
Date.default = Date.isoDate
@ -31,7 +31,7 @@ class Item is Comparable {
var printUsage = Fn.new {
System.print("""
Usage:
wren simdb.wren cmd [categoryName]
wren Simple_database.wren cmd [categoryName]
add add item name and date, followed by optional category
latest print item with latest date, followed by optional category
all print all

View file

@ -5,7 +5,7 @@ import "./str" for Str
var printUsage = Fn.new {
System.print("""
Usage:
wren simdb.wren cmd [categoryName]
wren Simple_database.wren cmd [categoryName]
add add item name and date, followed by optional category
latest print item with latest date, followed by optional category
all print all
@ -41,7 +41,7 @@ if (!(1..4).contains(args.count)) {
}
// create a new Table object
var tableName = "simdb"
var tableName = "Simple_database"
var table
if (Table.fileExists(tableName)) {
table = Table.load(tableName)