UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

19 lines (18 loc) 880 B
import { Command } from "@oclif/core"; export default class SpacesMembersIndex extends Command { static description = "Commands for managing members in Ably Spaces"; static examples = [ "$ ably spaces members subscribe my-space", "$ ably spaces members enter my-space", "$ ably spaces members get-all my-space", ]; async run() { this.log("Ably Spaces members commands:"); this.log(""); this.log(" ably spaces members subscribe - Subscribe to members presence and show real-time updates"); this.log(" ably spaces members enter - Enter a space and stay present until terminated"); this.log(" ably spaces members get-all - Get all current members in a space"); this.log(""); this.log("Run `ably spaces members COMMAND --help` for more information on a command."); } }