We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 959c4ae commit 5364b23Copy full SHA for 5364b23
lib/commands/cache.js
@@ -34,9 +34,13 @@ const cmd = {
34
cmd.handler = function(argv) {
35
session.argv = argv;
36
37
+ const name = argv.keyword;
38
+ const isInteger = Number.isInteger(Number(name));
39
+
40
const caches = cache.list()
41
.filter(function(f) {
- return argv.keyword.length === 0 || f.name.startsWith(argv.keyword + '.');
42
+ return (name.length === 0) ||
43
+ (isInteger ? f.name.startsWith(name + '.') : f.name === name);
44
});
45
46
if (argv.delete) {
0 commit comments