- commandLineArgsWidget :: Widget [EData a]
- configFileWidget :: String -> Widget [EData a]
- environmentWidget :: Widget [EData a]
- progNameWidget :: Widget [EData a]
Documentation
commandLineArgsWidget :: Widget [EData a]Source
Place the command line arguments on the bus as an Event following the pattern
- name : argv
- group : Environment
- source : CommandLineArgsWidget
- timespan : Persistent
- data : EStringL of the command line args
configFileWidget :: String -> Widget [EData a]Source
Read a config file and place it on the bus as individual events for each config item following the pattern:
- name : config item name
- group : Environment
- source : filename.ConfigFileWidget
- timespan : Persistent
- data : EString config item value
Config files follow a fairly simple grammar:
ConfigFile := [ConfigLine]
ConfigLine := key spaces = spaces value endl | CommentLine | BlankLine
CommentLine := # anychars endl
BlankLine := spaces endl
environmentWidget :: Widget [EData a]Source
Read in all environment variables and place them on the bus individually as events following the pattern:
- name : variable name
- group : Environment
- source : EnvironmentWidget
- timespan : Persistent
- data : EString variable value
progNameWidget :: Widget [EData a]Source
Set the program name as an event on the bus using the following pattern:
- name : ProgramName
- group : Environment
- source : ProgramNameWidget
- timespan : Persistent
- data : EString progran name