Skip to content
Snippets Groups Projects
Commit 0ad3dd58 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Add function doc

parent e649bd37
No related branches found
No related tags found
1 merge request!86Dump config file
Pipeline #
...@@ -216,6 +216,16 @@ def mod_to_context(mod): ...@@ -216,6 +216,16 @@ def mod_to_context(mod):
def dump_config(params, ctx): def dump_config(params, ctx):
""" Generate configuration file from parameters and context
Parameters
----------
params : :any:`list`
List of parameters. For example, params attributes of click.Option.
ctx : dict
Click context dictionary.
"""
config_file = open(ctx.params.get('dump_config'), 'w') config_file = open(ctx.params.get('dump_config'), 'w')
logger.debug("Generating configuration file `%s'...", config_file) logger.debug("Generating configuration file `%s'...", config_file)
config_file.write('## Configuration file automatically generated at %s ' config_file.write('## Configuration file automatically generated at %s '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment