The manual
Language
Commands, values, procs, jobs and errors. Each section is the text ela --spec prints for it.
ela is the scripting language of the ela shell, written in Odin. It replaces Bash and Python glue scripts.
- 01Keywords
- 02Goals
- 03Files and imports
- 04Statements and blocks
- 05Comments
- 06Layout
- 07Naming style
- 08Commandsecho prints any value
- 09VariablesThe environment · Constants
- 10TypesType and type_of · null
- 11Lists and mapsSorting a list · Indexes and slices
- 12Structs and enums
- 13ProcsTyped parameters and typed, named results · What a proc sees · Named and optional arguments
- 14Control flowswitch · Values from switch and if · Lists from for · defer
- 15withwith screen · time.block and time.each
- 16catchWhich lines a catch covers · catch signal · catch run · catch, try and defer
- 17Error handlingErrors as values · fail
- 18Error messages
- 19Pipes and capture
- 20The ? suffix
- 21StringsOne line · Several lines
- 22Process controlJobs · wait · Who waits · kill · run.max and $run.slot
- 23Signals
- 24Progress and spinners
- 25Arithmetic
- 26Strict rules
- 27Core built-insTotals, smallest and largest · Results are kept