about summary refs log tree commit diff stats
path: root/README.md
blob: 56b70ac57195d03f74029670f9344ea5cf8abbc4 (plain) (blame)
1
2
3
4
5
6
7
8
# Admin Scripts

Scripts that make [tilde.institute](https://tilde.institute) work. 

Includes new user creation
and other miscellaneous tasks, such as various monitoring scripts.

Scripts have author credited at the top of the file
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
recipe test a:number -> b:number [
  local-scope
  load-ingredients
  b <- add a, 1
]

recipe test a:number, b:number -> c:number [
  local-scope
  load-ingredients
  c <- add a, b
]

recipe main [
  local-scope
  a:number <- test 3  # selects single-ingredient version
  $print a, 10/newline
  b:number <- test 3, 4  # selects double-ingredient version
  $print b, 10/newline
  c:number <- test 3, 4, 5  # prefers double- to single-ingredient version
  $print c, 10/newline
]