From: Erik Skultety Date: Tue, 16 Mar 2021 17:00:41 +0000 (+0100) Subject: ci: helper: Introduce --quiet for the refresh command X-Git-Tag: v7.2.0-rc1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=013b5a085a2a9a850f6802a030825ca2e9be12a2;p=thirdparty%2Flibvirt.git ci: helper: Introduce --quiet for the refresh command Offer an option to silence all output to stdout coming out of the dockerfiles/varsfiles generating code. Signed-off-by: Erik Skultety Reviewed-by: Andrea Bolognani --- diff --git a/ci/helper b/ci/helper index 8f34f4b59d..53baef3cb1 100755 --- a/ci/helper +++ b/ci/helper @@ -116,6 +116,12 @@ class Parser: parents=[lcitoolparser], formatter_class=argparse.ArgumentDefaultsHelpFormatter, ) + refreshparser.add_argument( + "--quiet", + action="store_true", + default=False, + help="refresh data silently" + ) refreshparser.set_defaults(func=Application.action_refresh) def parse(self): @@ -173,7 +179,8 @@ class Application: outfile = f"ci-{host}-cross-{cross}.Dockerfile" outpath = outdir.joinpath(outfile) - print(outpath) + if not self.args.quiet: + print(outpath) output = self.lcitool_run(args) with open(outpath, "w") as f: @@ -185,7 +192,8 @@ class Application: outfile = f"{host}.vars" outpath = outdir.joinpath(outfile) - print(outpath) + if not self.args.quiet: + print(outpath) output = self.lcitool_run(args) with open(outpath, "w") as f: