nexusLIMS.cli.manage_instruments#
CLI entry point for the NexusLIMS instrument management TUI.
Provides the nexuslims instruments manage and nexuslims instruments list
commands for interactive and scriptable database management.
Usage#
.. code-block:: bash
# Launch the instrument management TUI
nexuslims instruments manage
# List instruments in a table
nexuslims instruments list
# List instruments as JSON
nexuslims instruments list --format json
# Show version information
nexuslims instruments manage --version
Features#
List all instruments in a searchable table
Add new instruments with form validation
Edit existing instruments
Delete instruments with confirmation prompts
Theme switching (dark/light mode)
Built-in help screen
Automatic database initialization (if NX_DB_PATH doesn’t exist yet)
Module Contents#
Functions#
Manage NexusLIMS instruments database. |
Data#
API#
- nexusLIMS.cli.manage_instruments.logger#
‘getLogger(…)’
- nexusLIMS.cli.manage_instruments.main()#
Manage NexusLIMS instruments database.
Launch an interactive terminal UI for adding, editing, and deleting instruments in the NexusLIMS database. Provides form validation, uniqueness checks, and confirmation prompts for destructive actions.
Keybindings:#
a Add new instrument
e Edit selected instrument
d Delete selected instrument
r Refresh list
Ctrl+T Toggle theme (dark/light)
? Show help
Ctrl+Q Quit
Example:#
$ nexuslims instruments manage
The TUI will display a table of all instruments. Use arrow keys to navigate and press Enter or ‘e’ to edit the selected instrument.