diff options
Diffstat (limited to 'generator')
-rwxr-xr-x | generator/csv/csv.py | 22 | ||||
-rw-r--r-- | generator/csv/templates/modules.csv | 12 |
2 files changed, 0 insertions, 34 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() diff --git a/generator/csv/templates/modules.csv b/generator/csv/templates/modules.csv deleted file mode 100644 index 567dc43..0000000 --- a/generator/csv/templates/modules.csv +++ /dev/null @@ -1,12 +0,0 @@ -{# Copyright (c) Pelagicore AB 2016 #} -{% for module in system.modules %} - {%- for interface in module.interfaces -%} - SERVICE, {{module}}.{{interface}} - {% endfor -%} - {%- for struct in module.structs -%} - STRUCT , {{module}}.{{struct}} - {% endfor -%} - {%- for enum in module.enums -%} - ENUM , {{module}}.{{enum}} - {% endfor -%} -{% endfor %} |