Esempio n. 1
0
    def input_parser(pargs):

        # Source

        source = {
            'path': pargs.source
        }

        if '.' in pargs.source and get_extension(pargs.source) == 'git':
            source['type'] = 'git'
        else:
            source['type'] = 'path'

        theme = {
            'name': pargs.theme,
            'path': pargs.theme_dir
        }

        build = {
            'path': pargs.build_dir,
            'flag_remove': pargs.remove_build_dir
        }

        return {
            'source': source,
            'output': pargs.output,
            'debug': pargs.debug,
            'theme': theme,
            'build': build,
            'serve': pargs.serve
        }
Esempio n. 2
0
def is_git_uri(path):
    return '.' in path and get_extension(path) == 'git'