Skip to content

Commit

Permalink
Add empty message to images
Browse files Browse the repository at this point in the history
  • Loading branch information
gjabell committed May 30, 2019
1 parent 4ee06ea commit f0573f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/commands/images.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { info } = require('../logger');

const images = require('../images');

exports.command = 'images';
Expand All @@ -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,
Expand Down

0 comments on commit f0573f0

Please sign in to comment.