HenrikBengtsson / CBI-software

A Scientific Software Stack for HPC (CentOS oriented)
https://wynton.ucsf.edu/hpc/software/software-repositories.html
5 stars 2 forks source link

Modules: Use Lua multi-line strings for the 'Description:' entries #35

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

Instead of:

whatis("Description: A cat(1) clone with syntax highlighting and Git integration. Examples: `bat README.md`, `bat scripts/*.sh`, and `bat src/*.c`. Warning: Only the most recent version of this software will be kept.")

use

whatis([[
Description: A cat(1) clone with syntax highlighting and Git integration.
Examples: `bat README.md`, `bat scripts/*.sh`, and `bat src/*.c`.
Warning: Only the most recent version of this software will be kept.
]])

This will make the *.lua files a tad easier to write and read. The only difference, will be that module show will now have the newlines, e.g.

$ module show bat
...
whatis("Description: A cat(1) clone with syntax highlighting and Git integration.
Examples: `bat README.md`, `bat scripts/*.sh`, and `bat src/*.c`.
Warning: Only the most recent version of this software will be kept.
")

instead of as before,

$ module show bat
...
whatis("Description: A cat(1) clone with syntax highlighting and Git integration. Examples: `bat README.md`, `bat scripts/*.sh`, and `bat src/*.c`. Warning: Only the most recent version of this software will be kept.")