File: internal_struct.org

package info (click to toggle)
lmod 8.7.60-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 63,000 kB
  • sloc: sh: 6,266; makefile: 2,837; ansic: 1,513; tcl: 1,382; python: 1,050; csh: 112
file content (24 lines) | stat: -rw-r--r-- 1,055 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Ideas for internal structure doc

* Overview of Lmod structure.
** The work of main() in lmod (or lmod.in.lua in source tree) breaks into 3 parts
*** Process command line and options
**** commands are read in an evaluated.  Command can be abbreviated.  
      So the avail command can be any number of character with a
      minimum of 2. So "av" or "ava" will work as avail but "avi" will
      not because it doesn't match "avail".  See the array lmodCmdA for
      details.
**** Some options like --version, --dumpversion and --help  
      require no command processing so they are evaluated immediately
      and Lmod exits.
**** unknown commands output the usage printout to stderr
*** Evaluate module command
    The actions of load, unloading etc are collected in the VarT
    table.  The individual statements like setenv etc produce no
    output at this stage.
*** Output the results or error out.
    The output of all the changes to the environment, stored in VarT,  are written to
    stdout in alphabetical order.

    Or lmod errors out.