~aleteoryx/bundlemania

bcb9e63da96d00e20a220a1aecfb1704538530b8 — Aleteoryx 9 months ago 89045f5
reorg, some games
M README => README +14 -13
@@ 1,34 1,35 @@
code for keeping track of my extreme number of itch bundles

scripts:
scripts
=======

* setup.tcl DB-PATH
* s/setup DB-PATH
  sets up a new database

* import.tcl DB-PATH DATAFILE ?DATAFILE ...?
* s/import DB-PATH DATAFILE ?DATAFILE ...?
  loads the datafiles as formatted by misc/scripts.js into DB-PATH, ignoring existing urls

* mark.tcl DB-PATH ?-force? ?-timestamp TIMESTAMP? GAMEURL ?GAMEURL ...?
* s/mark DB-PATH ?-force? ?-timestamp TIMESTAMP? GAMEURL ?GAMEURL ...?
  marks each GAMEURL as played on TIMESTAMP, or YYYYMMDD by default.
  will not overwrite an existing timestamp without -force

* unmark.tcl DB-PATH GAMEURL ?GAMEURL ...?
* s/unmark DB-PATH GAMEURL ?GAMEURL ...?
  unmarks each GAMEURL, as if it were never marked

* stats.tcl DB-PATH ?GAMEURL ...?
* s/stats DB-PATH ?GAMEURL ...?
  if no GAMEURLs are present, prints database stats. otherwise, prints the played status of each GAMEURL

* ignore.tcl DB-PATH GAMEURL ?GAMEURL ...?
  marks each GAMEURL to be ignored by stats.tcl
* s/ignore DB-PATH GAMEURL ?GAMEURL ...?
  marks each GAMEURL to be ignored by stats

* unignore.tcl DB-PATH GAMEURL ?GAMEURL ...?
  unmarks each GAMEURL to be ignored by stats.tcl
* s/unignore DB-PATH GAMEURL ?GAMEURL ...?
  unmarks each GAMEURL to be ignored by stats

* table.tcl DB-PATH
* s/table DB-PATH
  generates an html file with game info

* pick.tcl DB-PATH
* s/pick DB-PATH
  picks a random, unplayed, unignored game from the database

* comment.tcl DB-PATH COMMENT GAMEURL ?GAMEURL ...?
* s/comment DB-PATH COMMENT GAMEURL ?GAMEURL ...?
  sets the comment on GAMEURL to COMMENT

M db/games.db => db/games.db +0 -0
R comment.tcl => s/comment +0 -0
R unignore.tcl => s/ignore +0 -0
R import.tcl => s/import +0 -0
R mark.tcl => s/mark +0 -0
R pick.tcl => s/pick +0 -0
R setup.tcl => s/setup +0 -0
R stats.tcl => s/stats +0 -0
R table.tcl => s/table +0 -0
R ignore.tcl => s/unignore +0 -0
R unmark.tcl => s/unmark +0 -0