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:
parent
b8e7a77d78
commit
ed7ec6a332
3 changed files with 90 additions and 61 deletions
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue