losalamos.tools.update_templates#

Synchronise note templates to a target project folder.

Copies all _*.md template files from the project-level templates source into the specified destination directory.

Shell usage

python -m losalamos.tools.update_templates --notes /path/to/notes

# Using short flag
python -m losalamos.tools.update_templates -n /path/to/notes

Functions

get_arguments()

main()

Copy note templates from the project source into the target folder.

losalamos.tools.update_templates.get_arguments()[source]#
losalamos.tools.update_templates.main()[source]#

Copy note templates from the project source into the target folder.

Templates are identified by the _*.md glob pattern. Missing templates produce a warning; no error is raised.