diff --git a/lib/commands/images.js b/lib/commands/images.js index 1d2768d..36eff57 100644 --- a/lib/commands/images.js +++ b/lib/commands/images.js @@ -1,3 +1,5 @@ +const { info } = require('../logger'); + const images = require('../images'); exports.command = 'images'; @@ -7,6 +9,12 @@ exports.builder = () => {}; exports.handler = async () => { let table = await images.list(); + + if (table.length === 0) { + info('No images'); + return; + } + let transformed = table .map(i => ({ image: i.image,