@ably/cli
Version:
Ably CLI for Pub/Sub, Chat and Spaces
16 lines (15 loc) • 579 B
JavaScript
import { Command, Flags } from "@oclif/core";
import chalk from "chalk";
import open from "open";
export default class InfoCommand extends Command {
static description = "General support resources and documentation links";
static examples = ["<%= config.bin %> <%= command.id %>"];
static flags = {
help: Flags.help({ char: "h" }),
};
async run() {
await this.parse(InfoCommand);
this.log(`${chalk.cyan("Opening")} https://ably.com/support ${chalk.cyan("in your browser")}...`);
await open("https://ably.com/support");
}
}