nexusLIMS.tui.apps.config.app#

NexusLIMS Configuration TUI Application.

Provides an interactive terminal UI for editing the NexusLIMS .env configuration file. Launched via nexuslims config edit.

Module Contents#

Classes#

ConfiguratorApp

TUI application for interactively editing NexusLIMS configuration.

API#

class nexusLIMS.tui.apps.config.app.ConfiguratorApp(env_path: Path | str = '.env', **kwargs)[source]#

Bases: nexusLIMS.tui.common.base_app.BaseNexusApp

TUI application for interactively editing NexusLIMS configuration.

Reads the current .env file, presents all settings in a tabbed form, validates input, and writes a new .env on save. No database connection is required, so on_mount skips the DB session setup from BaseNexusApp.

Parameters:

env_path (Path | str) – Path to the .env file to edit. The file is created (empty) if it does not yet exist. Defaults to ".env" in the current directory.

CSS_PATH#

Type: typing.ClassVar

property env_path: Path#

Return the path to the .env file being edited.

on_mount() None[source]#

Push the config screen (no database session needed).

get_app_name() str[source]#

Return application name for the help screen.

action_help() None[source]#

Show the configurator help screen with app description.

get_keybindings() list[tuple[str, str]][source]#

Return app-specific keybindings for the help screen.