Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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' }
]
})
}
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' }
]
})
}
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'}
]
})
}
}
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'}
]
})
}
}