@ably/cli
Version:
Ably CLI for Pub/Sub, Chat and Spaces
19 lines (18 loc) • 871 B
JavaScript
import { Command } from "@oclif/core";
export default class SpacesLocks extends Command {
static description = "Commands for component locking in Ably Spaces";
static examples = [
"$ ably spaces locks acquire my-space my-lock-id",
"$ ably spaces locks subscribe my-space",
"$ ably spaces locks get my-space my-lock-id",
"$ ably spaces locks get-all my-space",
];
async run() {
this.log("Use one of the spaces locks subcommands:");
this.log("");
this.log(" ably spaces locks acquire - Acquire a lock in a space");
this.log(" ably spaces locks subscribe - Subscribe to lock changes in a space");
this.log(" ably spaces locks get - Get information about a specific lock");
this.log(" ably spaces locks get-all - Get all current locks in a space");
}
}