# Path: moduleframework/compose_info.py
# class ComposeParser(object):
#     def __init__(self, compose):
#     def getModuleList(self):
#     def variableListForModule(self, name):


from moduleframework import compose_info
from optparse import OptionParser
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Authors: Jan Scotka <jscotka@redhat.com>
#

from __future__ import print_function

if __name__ == '__main__':
    parser = OptionParser()
    parser.add_option(
        "-c",
        "--compose",
        dest="compose",
        help="Compose repo URL")
    parser.add_option(
        "-l",
        "--list",
        action="store_true",
        default=False,
        dest="list",
        help="List Modules in compose")
    parser.add_option("-m", "--module", dest="module",
                      help="get env variable for module")
    (options, args) = parser.parse_args()
    # REPO=https://kojipkgs.stg.fedoraproject.org/compose/branched/jkaluza/latest-Boltron-26/compose/base-runtime/x86_64/os/
    if options.compose:
        a = compose_info.ComposeParser(options.compose)
        if options.list:
            for foo in a.getModuleList():

# Path: moduleframework/compose_info.py
# class ComposeParser(object):
#     def __init__(self, compose):
#     def getModuleList(self):
#     def variableListForModule(self, name):


# Path: tools/compose_info_parser.py
from moduleframework import compose_info
from optparse import OptionParser

# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Authors: Jan Scotka <jscotka@redhat.com>
#

from __future__ import print_function

if __name__ == '__main__':
    parser = OptionParser()
    parser.add_option(
        "-c",
        "--compose",
        dest="compose",
        help="Compose repo URL")
    parser.add_option(
        "-l",
        "--list",
        action="store_true",
        default=False,
        dest="list",
        help="List Modules in compose")
    parser.add_option("-m", "--module", dest="module",
                      help="get env variable for module")
    (options, args) = parser.parse_args()
    # REPO=https://kojipkgs.stg.fedoraproject.org/compose/branched/jkaluza/latest-Boltron-26/compose/base-runtime/x86_64/os/
    if options.compose:
        a = compose_info.ComposeParser(options.compose)
        if options.list:
            for foo in a.getModuleList():

                print(foo)