Skip to content

fix: get setting values from oneclirc#4

Merged
br-monteiro merged 4 commits into
mainfrom
fix/get-setting-values-from-oneclirc
Mar 14, 2026
Merged

fix: get setting values from oneclirc#4
br-monteiro merged 4 commits into
mainfrom
fix/get-setting-values-from-oneclirc

Conversation

@br-monteiro

Copy link
Copy Markdown
Member

This pull request introduces improvements to the configuration handling for commands and adds a development mode to the CLI script. The most significant changes are the introduction of a function to retrieve command-specific settings, updating the hello command to use this function, and adding a "dev" mode to the CLI entrypoint for easier local development.

Configuration handling improvements:

  • Added a new function settings_for_command in common/config.py to retrieve command-specific settings, allowing command-level overrides of global configuration.
  • Updated the hello command (commands/hello/__init__.py) to use settings_for_command("hello") instead of the previous global settings, enabling it to respect command-specific configuration.

CLI usability enhancement:

  • Modified the onecli script to add a "dev" mode: running onecli dev ... now mounts the current directory into the container, making local development and testing easier.

@br-monteiro br-monteiro self-assigned this Mar 14, 2026
@br-monteiro
br-monteiro merged commit ca54aff into main Mar 14, 2026
1 check passed
@br-monteiro
br-monteiro deleted the fix/get-setting-values-from-oneclirc branch March 14, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant