How to use the heroku-cli-util.table function in heroku-cli-util

To help you get started, we’ve selected a few heroku-cli-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github heroku / cli / packages / spaces / commands / index.js View on Github external
function display (spaces) {
  cli.table(spaces, {
    columns: [
      { key: 'name', label: 'Name' },
      { key: 'team.name', label: 'Team' },
      { key: 'region.name', label: 'Region' },
      { key: 'state', label: 'State' },
      { key: 'created_at', label: 'Created At' }
    ]
  })
}
github heroku / cli / packages / spaces / commands / index.js View on Github external
function display (spaces) {
  cli.table(spaces, {
    columns: [
      { key: 'name', label: 'Name' },
      { key: 'team.name', label: 'Team' },
      { key: 'region.name', label: 'Region' },
      { key: 'state', label: 'State' },
      { key: 'created_at', label: 'Created At' }
    ]
  })
}
github heroku / heroku-connect-plugin / commands / connect-events / state.js View on Github external
function * run (context, heroku) {
  let connections = yield api.withUserConnections(context, context.app, context.flags, heroku, true, api.ADDON_TYPE_EVENTS)

  if (context.flags.json) {
    cli.styledJSON(connections)
  } else {
    cli.table(connections, {
      columns: [
        {key: 'db_key', label: 'Kafka'},
        {key: 'schema_name', label: 'Schema'},
        {key: 'state', label: 'State'}
      ]
    })
  }
}
github heroku / heroku-connect-plugin / commands / connect / state.js View on Github external
function * run (context, heroku) {
  let connections = yield api.withUserConnections(context, context.app, context.flags, heroku)

  if (context.flags.json) {
    cli.styledJSON(connections)
  } else {
    cli.table(connections, {
      columns: [
        {key: 'db_key', label: 'Database'},
        {key: 'schema_name', label: 'Schema'},
        {key: 'state', label: 'State'}
      ]
    })
  }
}

heroku-cli-util

Set of helpful CLI utilities

ISC
Latest version published 5 years ago

Package Health Score

50 / 100
Full package analysis

Similar packages