Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit f930962

Browse files
committed
tweaks to default theme; plus support for activation counts
Fixes #819 Fixes #292
1 parent b5a638c commit f930962

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

app/plugins/modules/activation-visualizations/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
"email": "nickm@us.ibm.com"
1212
},
1313
"license": "Apache-2.0",
14-
"dependencies": {
15-
}
14+
"dependencies": {}
1615
}

app/plugins/ui/commands/openwhisk-core.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,14 @@ module.exports = (commandTree, prequire) => {
13011301
commandTree.listen(`/wsk/${syn}/current`, () => namespace.current(), { docs: 'Print the currently selected namespace' })
13021302
})
13031303

1304+
// count APIs
1305+
for (let entityType in synonyms.entities) {
1306+
synonyms.entities[entityType].forEach(syn => {
1307+
commandTree.listen(`/wsk/${syn}/count`, () => ow[entityType].list({ count: true })
1308+
.then(res => res[entityType]))
1309+
})
1310+
}
1311+
13041312
debug('init done')
13051313
return self
13061314
}

app/plugins/ui/commands/openwhisk-usage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ const actionMix = params.concat(annotations).concat(limits).concat([
9191

9292
/** optional skip and limit parameters */
9393
const skipAndLimit = [{ name: '--limit', alias: '-l', numeric: true, docs: 'show at most N'},
94-
{ name: '--skip', alias: '-s', numeric: true, docs: 'start from N'}]
94+
{ name: '--skip', alias: '-s', numeric: true, docs: 'start from N'},
95+
{ name: '--count', boolean: true, docs: 'return a count, rather than the records'}]
9596

9697
/**
9798
* Usage strings. TODO externalize

0 commit comments

Comments
 (0)