diff options
Diffstat (limited to 'autogpts/autogpt/autogpt/core/runner/client_lib/shared_click_commands.py')
-rw-r--r-- | autogpts/autogpt/autogpt/core/runner/client_lib/shared_click_commands.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/autogpts/autogpt/autogpt/core/runner/client_lib/shared_click_commands.py b/autogpts/autogpt/autogpt/core/runner/client_lib/shared_click_commands.py new file mode 100644 index 000000000..5be52acb8 --- /dev/null +++ b/autogpts/autogpt/autogpt/core/runner/client_lib/shared_click_commands.py @@ -0,0 +1,19 @@ +import pathlib + +import click + +DEFAULT_SETTINGS_FILE = str( + pathlib.Path("~/auto-gpt/default_agent_settings.yml").expanduser() +) + + +@click.command() +@click.option( + "--settings-file", + type=click.Path(), + default=DEFAULT_SETTINGS_FILE, +) +def make_settings(settings_file: str) -> None: + from autogpt.core.runner.client_lib.settings import make_user_configuration + + make_user_configuration(pathlib.Path(settings_file)) |