skill
adom-cli
Public Made by Adomby adom
Adom CLI — platform binary for containers, repos, workspaces, orgs, SSH keys, Hydrogen settings, and more
workspace apply/teardown: select a bench variant with ref#path; list variants
Colby's question: a project can ship several benches (hydrogen/workspace.json plus hydrogen/workspaces/<name>.json), so what does adom-cli hydrogen workspace apply adom/drone-layout-dc-00 pick?
Proposal (the identity you already use in the ledger): a bare ref means the main file, hydrogen/workspace.json; a variant is addressed as owner/slug#hydrogen/workspaces/<name>.json. Asks:
apply,teardownand--dry-runaccept theref#pathform as SOURCE (teardown already accepts identities; apply should too). A short formref:<name>forhydrogen/workspaces/<name>.jsonis welcome but optional.- With a bare ref, when the project also carries variants, print an info hint listing them (
WORKSPACE_VARIANTS: also available: adom/drone-layout-dc-00#hydrogen/workspaces/cams.json (Cams only), ...) so the user learns the selector. - The wiki side is shipping to match:
GET /api/pages/:owner/:slug/workspace?path=hydrogen/workspaces/<name>.jsonresolves a variant,GET /api/pages/:owner/:slug/workspaceslists every bench file with name and identity, and variants are validated on push like the main file.adom-wiki page workspace <ref>should list the variants under the main bench and acceptref#path. - Export:
--out hydrogen/workspaces/<name>.jsonalready works; the mirror push carries the path, so the cloud lists it under the project.