#774 Add an option to make pungi-koji print its compose_dir to stdout
Merged 6 years ago by lsedlar. Opened 6 years ago by puiterwijk.
puiterwijk/pungi printdir  into  master

file modified
+9
@@ -155,6 +155,12 @@ 

          help="only create latest symbol link to this compose when compose status matches specified status",

      )

      parser.add_argument(

+         "--print-output-dir",

+         action="store_true",

+         default=False,

+         help="print the compose directory"

+     )

+     parser.add_argument(

          "--quiet",

          action="store_true",

          default=False,
@@ -231,6 +237,9 @@ 

      else:

          compose_dir = opts.compose_dir

  

+     if opts.print_output_dir:

+         print('Compose dir: %s' % compose_dir)

+ 

      compose = Compose(conf,

                        topdir=compose_dir,

                        debug=opts.debug_mode,

How is this different to the Compose top directory that is already printed a few lines below this one?

That this one is also printed with --quiet, so that one can use --quiet --print-output-dir, and not have to parse the full stdout.

Pull-Request has been merged by lsedlar

6 years ago
Metadata