feat: improve CLI parameter handling and cleanup unused code (#4002)

* chore: remove envvar parameter from CLI option

* chore: add show_default=False flag to CLI option

* chore: update argument type to accept None

* feat: add missing Settings to CLI options

* feat: add default path value for components

* chore: rename CLI parameters to match Settings

* feat: update function to enforce parameter hierarchy

CLI > specific env_file > default env_file

* fix: adjust CLI parameter code to pass unit tests

* fix: mypy error arg-type

* fix: little ajustments
This commit is contained in:
Ítalo Johnny 2024-10-03 13:10:04 -03:00 • committed by GitHub
commit ed7ec6a332
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 90 additions and 61 deletions

View file

@ -243,7 +243,7 @@ start:
ifeq ($(open_browser),false)
@make install_backend && uv run langflow run \
--path $(path) \
--frontend-path $(path) \
--log-level $(log_level) \
--host $(host) \
--port $(port) \
@ -251,7 +251,7 @@ ifeq ($(open_browser),false)
--no-open-browser
else
@make install_backend && uv run langflow run \
--path $(path) \
--frontend-path $(path) \
--log-level $(log_level) \
--host $(host) \
--port $(port) \
@ -262,7 +262,7 @@ setup_devcontainer: ## set up the development container
make install_backend
make install_frontend
make build_frontend
uv run langflow --path src/frontend/build
uv run langflow --frontend-path src/frontend/build
setup_env: ## set up the environment
@sh ./scripts/setup/setup_env.sh