nuclearpinguin commented on a change in pull request #7130: [AIRFLOW-6533] Add
cli commands to manage config
URL: https://github.com/apache/airflow/pull/7130#discussion_r365513246
##########
File path: airflow/bin/cli.py
##########
@@ -910,11 +927,36 @@ class CLIFactory:
'args': ('roles',),
},
)
+ CONFIG_COMMANDS = (
+ {
+ 'name': 'show',
+ 'func':
lazy_load_command('airflow.cli.commands.config_command.show_config'),
+ 'help': 'Show current application configuration',
+ 'args': ('section',),
+ },
+ {
+ 'name': 'set',
+ 'func':
lazy_load_command('airflow.cli.commands.config_command.set_config_option'),
+ 'help': 'Set an option in config: '
+ 'airflow config set --section=core.executor
--value=LocalExecutor',
+ 'args': ('section', 'value', 'option', 'executor', 'dagdir'),
+ },
+ {
+ 'name': 'location',
Review comment:
You mean `airflow config cfg_path`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services