UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

17 lines (16 loc) 649 B
import { Command } from "@oclif/core"; import AccountsLogin from "./accounts/login.js"; export default class Login extends Command { static args = AccountsLogin.args; static description = 'Log in to your Ably account (alias for "ably accounts login")'; static examples = [ "<%= config.bin %> <%= command.id %>", "<%= config.bin %> <%= command.id %> --alias mycompany", ]; static flags = AccountsLogin.flags; async run() { // Run the accounts login command with the same args and flags const accountsLogin = new AccountsLogin(this.argv, this.config); await accountsLogin.run(); } }