diff options
author | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-01-17 12:29:27 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-01-17 12:29:27 +0100 |
commit | 92dc0631922f8b2faaf1c1772d0f8534b884f326 (patch) | |
tree | 29420e952530a825739a1f884e93e20836aee7cc /generator/csv/csv.py | |
parent | 0d747ca6d9647f212a0d853987faed46e66408b7 (diff) | |
parent | 978c6058064f9f0384c913b94ed8266563e572a7 (diff) |
Merge branch 'release/1.0b1'1.0b1
Diffstat (limited to 'generator/csv/csv.py')
-rwxr-xr-x | generator/csv/csv.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/generator/csv/csv.py b/generator/csv/csv.py deleted file mode 100755 index 3636997..0000000 --- a/generator/csv/csv.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -# Copyright (c) Pelagicore AB 2016 - -import click -from qface.generator import FileSystem, Generator - - -def generate(input, output): - system = FileSystem.parse_dir(input) - generator = Generator(searchpath='templates') - ctx = {'output': output, 'system': system} - generator.write('{{output}}/modules.csv', 'modules.csv', ctx) - - -@click.command() -@click.option('--input', type=click.Path(exists=True)) -@click.option('--output', type=click.Path(exists=True)) -def runner(input, output): - generate(input, output) - -if __name__ == '__main__': - runner() |