losalamos.tools.manage_documents#

Terminal document manager for a single project.

Accepts a project folder path and presents the document home page for that project directly. Project and branch navigation is handled by the higher-level losalamos.tools.manage_vault tool.

Shell usage

python -m losalamos.tools.manage_documents path/to/project/folder

Navigation

  • Home page: A add / E edit / B build / V view PDF / D delete / P back / Q quit.

  • Confirmation: ENTER or y to confirm, c to cancel, q to quit.

Functions

get_arguments()

Parse command-line arguments.

main()

run(project_folder[, vault])

Open the document manager home page for a single project.

losalamos.tools.manage_documents.get_arguments()[source]#

Parse command-line arguments.

Returns:

Parsed argument namespace with a source attribute.

losalamos.tools.manage_documents.run(project_folder: str, vault: str = None) None[source]#

Open the document manager home page for a single project.

Can be called directly (e.g. from losalamos.tools.manage_vault) or via main() when invoked from the command line.

Parameters:
  • project_folder (str) – Path to the project root folder.

  • vault (str or None) – Optional path to the vault root, passed to losalamos.load_project() for branch detection.

losalamos.tools.manage_documents.main() None[source]#