From 75fec80eb03d49891731dc16bb9ac88902fad5b9 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Mon, 15 Mar 2021 16:07:45 -0300 Subject: [PATCH] fix(chart:list-images): enhance help function and examples --- src/commands/chart/list-images.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/chart/list-images.ts b/src/commands/chart/list-images.ts index 3ad23a37..83cd1f8f 100644 --- a/src/commands/chart/list-images.ts +++ b/src/commands/chart/list-images.ts @@ -8,7 +8,10 @@ import Image from "../../model/image"; export default class SaveImage extends Command { static description = "list the docker images found in a helm chart"; - static examples = ["$ megatar chart list-images jenkins/jenkins"]; + static examples = [ + "$ megatar chart:list-images jenkins/jenkins", + "$ megatar chart:list-images https://github.com/jenkinsci/helm-charts/releases/download/jenkins-3.2.4/jenkins-3.2.4.tgz", + ]; static flags = { help: flags.help({ char: "h" }), @@ -18,7 +21,8 @@ export default class SaveImage extends Command { { name: "charts", required: true, - description: "the charts to find the images from", + description: + "the charts to find the images from (can be any value accepted by the helm template command)", }, ];