#!/usr/bin/env bash # booth — post media and links to The Booth (dead simple). A booth is just a # folder under $BOOTH_DATA_DIR; this is sugar over mkdir/cp so you get the URL # back. # # booth new [--why W] [--title T] # make an empty booth, print its URL # booth add ... [--why W] [--title T] # copy files into a booth (creates it), print URL # booth url print a booth's URL # booth ls list booths (kept ones marked ★) # booth rm wipe a booth now (TTL would eventually anyway) # # booth keep exempt a booth from the 24h sweep, forever # (NOT for "waiting on an answer" — an open # pick holds its own booth, see below) # booth unkeep hand it back to the sweeper # booth link [description] append a link to the standing link board # REFUSES a booth URL — a booth announces # itself now; use `booth new --why` # booth links list the board, numbered, with entry ids # booth unlink remove ONE link from the board # # booth bench add register or UPDATE a bench (upsert) # booth bench ls list benches, live -> promoted -> retired # booth bench state live | promoted | retired # booth bench rm remove one # booth bench import classify the board's rows; writes NOTHING # booth bench import --apply ... register ONLY the ids you name. A bare # --apply is REFUSED: a machine cannot tell # a bench from a bookmark by its URL, and # ~14 of 35 live candidates are bookmarks. # links.md is never edited by either form. # # THREE SURFACES, THREE JOBS. Telling them apart is the whole of U6: # a BOOTH is a review surface you post work to. It announces itself and is # swept 24h after its last activity. `booth new` / `booth add`. # a BENCH is a running thing — jackdaw's bench, talk's bench, the things that # get promoted to Homepage. Durable, and identified BY ITS URL, so posting # it again updates the row instead of adding a fifth. `booth bench add`. # a LINK is a reference bookmark — a repo, a model card, a doc page. The # standing board, unchanged and NOT deprecated. `booth link`. # The board carried all three because only one of them had a surface: 178 of its # 221 rows were booth URLs and 156 of those pointed at booths already swept. # # booth ask