No commands match your search
Complete foundation language reference — every verb, every syntax
No commands match your search
| ZelC Command | Rust Equivalent | Description | Sample Code |
|---|---|---|---|
| CORE LANGUAGE | |||
| CORE LANGUAGE | |||
| define function | fn | Declares a function. | define function greet(name) {
print name
} |
| println! | Prints text to the console. | print 'Hello World' | |
| return value | return | Returns a value from a function early. | define function get_age() {
return value 25
} |
| if | if | Evaluates a boolean condition. | if user.is_active {
login()
} |
| otherwise | else | Fallback block for an if condition. | if is_valid {
proceed()
} otherwise {
stop()
} |
| choose | match | Control flow based on pattern matching. | choose status {
"ok" => continue,
"err" => stop
} |
| repeat | loop/while/for | Constructs for repetitive execution. | repeat {
process_next()
} |
| repeat while | while | Loops as long as a condition is true. | repeat while is_running {
tick()
} |
| repeat for | for | Loops over an iterator. | repeat for i in 1..10 {
print i
} |
| for each | for / iterator loop | Executes a block for each item in a collection. | for each user in users {
notify(user)
} |
| stop loop | break | Exits a loop immediately. | repeat {
if done { stop loop }
} |
| skip step | continue | Skips to the next iteration of a loop. | repeat for item in list {
if bad { skip step }
} |
| wait | sleep | Pauses execution for a duration. | wait 5 seconds print "done" |
| delay | sleep | Suspends the current thread/task. | delay 100 ms resume_work() |
| do later | defer | Executes code at the end of a scope (via Drop or scopeguard). | make file = open("data.txt")
do later { close(file) } |
| yield now | yield_now | Cooperatively gives up a timeslice to the scheduler. | run async {
yield now
} |
| try | Result / ? | Propagates errors upwards if they occur. | make data = try read("x.txt")
print data |
| catch error | error handling branch | Matches on an Err variant to handle failure. | catch error err {
log_error(err)
} |
| always do | finally behavior / scope guard | Ensures cleanup code runs via Drop traits. | always do {
cleanup_memory()
} |
| raise error | return Err | Explicitly returns an error state. | if bad_input {
raise error "Invalid data"
} |
| crash | panic | Terminates the thread with an unrecoverable error. | if memory_full {
crash "Out of memory!"
} |
| check | assert | Ensures a boolean expression is true at runtime. | check user.age >= 18 grant_access() |
| mark todo | todo | Indicates unfinished code; panics if executed. | define function new_feature() {
mark todo
} |
| should never happen | unreachable | Marks code paths that logically cannot be reached. | otherwise {
should never happen
} |
| run async | async | Marks a block or function as returning a Future. | run async {
fetch_api_data()
} |
| wait for | await | Suspends execution until a Future completes. | make res = wait for fetch() process(res) |
| start task | spawn | Spawns a new thread or asynchronous task. | start task {
background_sync()
} |
| choose first ready | select | Waits on multiple concurrent branches, returning the first to finish. | choose first ready {
a => print a,
b => print b
} |
| do nothing | no-op | An empty block {} or () unit type. | if ignore_case {
do nothing
} |
| VARIABLES AND VALUES | |||
| make | let / create | Binds a value to a variable pattern. | make x = 5 print x |
| set | assign | Assigns a new value to an existing variable. | make mut x = 0 set x = 10 |
| change | mutable assign | Modifies the value of a mutable binding. | make mut status = "idle" change status = "active" |
| keep | const / static | Defines compile-time constants or static lifetime global variables. | keep MAX_LIMIT = 100 keep API_URL = "x.com" |
| copy value | clone / copy | Duplicates a value (via Clone trait for deep copies or Copy for bitwise). | make data = "text" make clone = copy value data |
| move value | move | Transfers ownership of a value to a new scope. | make job = get_job() spawn(move value job) |
| swap values | mem::swap | Swaps the values at two mutable locations without deinitializing either. | make mut a = 1 make mut b = 2 swap values a, b |
| take value | mem::take | Replaces a mutable location with its default value, returning the previous value. | make item = take value buffer process(item) |
| replace value | mem::replace | Moves a new value into a mutable location and returns the old value. | make old = replace value state
with "ready" |
| drop value | drop | Explicitly drops a value, freeing its memory and resources early. | make heavy = load_assets() drop value heavy |
| freeze value | immutable binding | Binds a value without `mut`, making it unchangeable. | make mut config = init() freeze value config |
| share value | Rc / Arc | Thread-local (Rc) or thread-safe (Arc) reference-counted smart pointers. | make obj = new_object() make shared = share value obj |
| borrow value | & | Creates a shared, immutable reference to a value. | make list = [1, 2, 3] make ref = borrow value list |
| borrow value to change | &mut | Creates an exclusive, mutable reference to a value. | make mut map = {}
make ref = borrow value to change map |
| pin value | Pin | Pins a value in memory, guaranteeing it will not be moved. | make task = pending_task() pin value task |
| box value | Box | Allocates data on the heap. | make huge_data = load() make ptr = box value huge_data |
| clear value | clear | Empties a collection while retaining its allocated capacity. | make mut cache = get_cache() clear value cache |
| reset value | reset/default | Returns a value to its default state using the Default trait. | make mut player = get_player() reset value player |
| value exists | is_some / contains / exists | Checks if an optional value is Some, or if a collection contains an item. | if value exists user.email {
send_message()
} |
| is empty | is_empty | Checks if a collection or string has a length of zero. | if my_list is empty {
fetch_more_items()
} |
| MODULES AND STRUCTURE | |||
| module | mod | Defines a module namespace. | module network {
// network code here
} |
| use | use | Brings paths into scope. | use network.http make client = http.Client() |
| make public | pub | Makes an item visible outside its module. | make public define function get_data() {
return value 42
} |
| keep private | private visibility | Default visibility; item is restricted to its module. | keep private define function internal_calc() {
return value 0
} |
| export | pub use | Re-exports an item from a different module. | use network.http.client export client |
| rename import | use as | Aliases an imported item. | use network.http.client
rename import web_client |
| this crate | crate | Refers to the root of the current crate. | use this crate.utils.parser |
| parent module | super | Refers to the parent of the current module. | use parent module.config |
| this module | self | Refers to the current module. | use this module.types.Status |
| package | Cargo package | A collection of crates described by a Cargo.toml. | package "my_zelc_app" {
version = "1.0.0"
} |
| feature on | cfg feature | Conditionally compiles code based on Cargo features. | feature on "database" {
use db.postgres
} |
| only on platform | cfg target | Conditionally compiles code based on the OS/architecture. | only on platform "windows" {
use winapi
} |
| only for tests | cfg test | Includes code only when running the test suite. | only for tests {
define function test_auth() { ... }
} |
| only for debug | cfg debug_assertions | Includes code only in unoptimized/debug builds. | only for debug {
print "Running heavily instrumented"
} |
| TYPES | |||
| true or false | bool | A boolean type (true or false). | make is_active: true or false = true |
| character | char | A 32-bit Unicode scalar value. | make letter: character = 'A' |
| text | String / str | UTF-8 encoded string data. | make name: text = "ZelC Language" |
| bytes | Vec<u8> | A heap-allocated array of 8-bit integers. | make payload: bytes = [0x01, 0xFF] |
| byte buffer | mutable byte buffer | A mutable slice or vector of bytes (`&mut [u8]`). | make mut buf: byte buffer = get_buffer() |
| small integer | i8/i16/i32 | Signed integers of 8, 16, or 32 bits. | make temp: small integer = -15 |
| integer | i64 / isize | 64-bit signed integer / pointer-sized integer. | make views: integer = 1000000 |
| big integer | i128 / BigInt | 128-bit signed integer or arbitrary precision integer. | make hash: big integer = 99999999999 |
| small positive integer | u8/u16/u32 | Unsigned integers of 8, 16, or 32 bits. | make age: small positive integer = 25 |
| positive integer | u64 / usize | 64-bit unsigned integer / pointer-sized unsigned integer. | make size: positive integer = 4096 |
| decimal number | f64 / Decimal | 64-bit floating point number. | make price: decimal number = 19.99 |
| list | Vec | A contiguous growable array type. | make scores: list = [10, 20, 30] |
| map | HashMap | A key-value hash map. | make config: map = {"port": 8080} |
| set | HashSet | A hash set for storing unique values. | make visited: set = {"home", "about"} |
| queue | VecDeque | A double-ended queue implemented with a growable ring buffer. | make tasks: queue = [] |
| stack | Vec | Used as a LIFO stack via push/pop. | make history: stack = ["page1"] |
| heap | BinaryHeap | A priority queue implemented with a binary heap. | make priority_jobs: heap = [] |
| optional value | Option | Represents either a value (`Some`) or nothing (`None`). | make middle_name: optional value = none |
| result value | Result | Represents either success (`Ok`) or failure (`Err`). | make status: result value = success("ok") |
| named shape | struct | A custom data type containing named fields. | named shape Point {
x: integer,
y: integer
} |
| choice type | enum | A type that can be any one of several variants. | choice type State {
Idle,
Running,
Finished
} |
| raw union | union | A C-like union sharing memory between fields. | raw union Pixel {
rgba: positive integer,
channels: bytes
} |
| any value | dyn Any / serde_json::Value | Dynamic trait object for runtime reflection or JSON data. | make payload: any value = parse_json() |
| nothing | () | The unit type, representing no meaningful value. | return nothing |
| never returns | ! | The never type, indicating a function panics or loops forever. | define function crash() -> never returns {
crash "fatal error"
} |
| LISTS | |||
| make list | Vec::new | Creates a new, empty list. | make my_list = make list |
| make list with room | Vec::with_capacity | Creates an empty list with pre-allocated capacity. | make my_list = make list with room 100 |
| add to list | push | Appends an element to the back of a collection. | add to list my_list 5 |
| take from list | pop | Removes the last element from a collection and returns it. | make last_item = take from list my_list |
| get from list | get | Returns a reference to an element, or None if out of bounds. | make item = get from list my_list at 0 |
| get from list to change | get_mut | Returns a mutable reference to an element. | make mut_item = get from list to change
my_list at 0 |
| put into list | insert | Inserts an element at a specific index within the list. | put into list my_list at 1 value 10 |
| set list item | index assign | Overwrites an element at a specific index. | set list item my_list at 0 to 20 |
| cut from list | remove | Removes and returns the element at a position, shifting all others. | make item = cut from list my_list at 2 |
| cut fast from list | swap_remove | Removes an element by swapping it with the last element. | make item = cut fast from list
my_list at 0 |
| first in list | first | Returns a reference to the first element. | make head = first in list my_list |
| last in list | last | Returns a reference to the last element. | make tail = last in list my_list |
| sort list | sort | Sorts the slice in place. | sort list my_list |
| sort list by | sort_by | Sorts the slice with a custom comparator function. | sort list by my_list with |a, b| a.cmp(b) |
| reverse list | reverse | Reverses the order of elements in the slice. | reverse list my_list |
| shuffle list | shuffle | Randomizes the order of elements. | shuffle list my_list |
| list has | contains | Returns true if the slice contains an element with the given value. | if list has my_list 10 { ... } |
| find in list | iter find | Searches for an element matching a condition. | make match = find in list my_list
where |x| x > 5 |
| find position in list | position | Returns the index of the first element matching a condition. | make idx = find position in list
my_list where |x| x == 10 |
| search sorted list | binary_search | Binary searches a sorted slice for a given element. | make idx = search sorted list
my_list for 10 |
| remove duplicates from list | dedup | Removes consecutive repeated elements. | remove duplicates from list my_list |
| add all to list | extend | Extends a collection with the contents of an iterator. | add all to list my_list from other_list |
| merge lists | concat / append | Creates a new list by joining two lists, or moves items from one to another. | make combined = merge lists a and b |
| slice list | slice | Creates a dynamically-sized view into a contiguous sequence. | make view = slice list my_list
from 1 to 3 |
| list length | len | Returns the number of elements in the collection. | make size = list length my_list |
| clear list | clear | Clears the list, removing all values. | clear list my_list |
| map list | iter map | Transforms elements into a new sequence. | make squares = map list my_list
with |x| x * x |
| filter list | iter filter | Keeps elements that match a condition. | make evens = filter list my_list
where |x| x % 2 == 0 |
| reduce list | fold / reduce | Combines elements into a single value. | make sum = reduce list my_list
with |acc, x| acc + x |
| flatten list | flatten | Flattens a list of lists into a single list. | make flat = flatten list nested_lists |
| collect list | collect | Transforms an iterator back into a concrete collection. | make result = collect list from iter |
| MAPS | |||
| make map | HashMap::new | Creates an empty HashMap. | make my_map = make map |
| put in map | insert | Inserts a key-value pair into the map. | put in map my_map key "age" value 30 |
| get from map | get | Returns a reference to the value corresponding to the key. | make val = get from map my_map key "age" |
| get from map to change | get_mut | Returns a mutable reference to the value. | make mut_val = get from map to change
my_map key "age" |
| remove from map | remove | Removes a key from the map, returning the value. | make val = remove from map my_map
key "age" |
| map has key | contains_key | Returns true if the map contains a value for the specified key. | if map has key my_map "age" { ... } |
| map keys | keys | An iterator visiting all keys in arbitrary order. | make keys_iter = map keys my_map |
| map values | values | An iterator visiting all values in arbitrary order. | make vals_iter = map values my_map |
| map items | iter | An iterator visiting all key-value pairs. | repeat for k, v in map items my_map |
| map length | len | Returns the number of elements in the map. | make count = map length my_map |
| clear map | clear | Clears the map, removing all key-value pairs. | clear map my_map |
| merge maps | extend | Adds all elements from one map into another. | merge maps my_map with other_map |
| map entry | entry API | Gets the given key's corresponding entry in the map for in-place manipulation. | make entry = map entry my_map
key "count" |
| SETS | |||
| make set | HashSet::new | Creates an empty HashSet. | make my_set = make set |
| add to set | insert | Adds a value to the set. | add to set my_set "apple" |
| remove from set | remove | Removes a value from the set. | remove from set my_set "apple" |
| set has | contains | Returns true if the set contains a value. | if set has my_set "apple" { ... } |
| join sets | union | Visits the values representing the union. | make all = join sets a and b |
| shared in sets | intersection | Visits the values representing the intersection. | make common = shared in sets a and b |
| difference of sets | difference | Visits the values representing the difference. | make diff = difference of sets a and b |
| set length | len | Returns the number of elements in the set. | make size = set length my_set |
| clear set | clear | Clears the set, returning all elements. | clear set my_set |
| ITERATION | |||
| make range | range | Generates a sequence of numbers. | make nums = make range 0 to 10 |
| do once | once | Creates an iterator that yields an element exactly once. | make iter = do once 42 |
| repeat item | repeat | Creates a new iterator that endlessly repeats a single element. | make iter = repeat item 1 |
| map each | map | Takes a closure and creates an iterator calling that closure on each element. | make iter2 = map each iter
with |x| x * 2 |
| filter each | filter | Creates an iterator which uses a closure to determine if an element should be yielded. | make iter2 = filter each iter
where |x| x > 0 |
| flat map each | flat_map | Creates an iterator that works like map, but flattens nested structure. | make iter2 = flat map each iter
with parse |
| fold each | fold | Folds every element into an accumulator by applying an operation. | make sum = fold each iter start 0
with |acc, x| acc + x |
| reduce each | reduce | Reduces the elements to a single one, by repeatedly applying a reducing operation. | make max = reduce each iter
with |a, b| max(a, b) |
| scan each | scan | An iterator to maintain state while iterating over another iterator. | make iter2 = scan each iter start 0
with |state, x| ... |
| find each | find | Searches for an element of an iterator that satisfies a predicate. | make match = find each iter
where |x| x == 5 |
| position of each | position | Searches for an element in an iterator, returning its index. | make idx = position of each iter
where |x| x == 5 |
| any match | any | Tests if any element of the iterator matches a predicate. | if any match iter where |x| x < 0 |
| all match | all | Tests if every element of the iterator matches a predicate. | if all match iter where |x| x > 0 |
| take first | take | Creates an iterator that yields its first n elements. | make iter2 = take first 5 from iter |
| skip first | skip | Creates an iterator that skips the first n elements. | make iter2 = skip first 5 from iter |
| take while | take_while | Yields elements while a predicate is true. | make iter2 = take while iter
where |x| x < 10 |
| skip while | skip_while | Skips elements while a predicate is true. | make iter2 = skip while iter
where |x| x < 10 |
| zip together | zip | 'Zips up' two iterators into a single iterator of pairs. | make pairs = zip together a and b |
| number each | enumerate | Creates an iterator which gives the current iteration count as well as the next value. | make indexed = number each iter |
| chunk items | chunks | Returns an iterator over chunk_size elements of the slice at a time. | make batches = chunk items iter by 10 |
| window items | windows | Returns an iterator over all contiguous windows of length size. | make slides = window items iter by 2 |
| chain items | chain | Takes two iterators and creates a new iterator over both in sequence. | make both = chain items a and b |
| cycle items | cycle | Repeats an iterator endlessly. | make endless = cycle items iter |
| peek next | peekable | Creates an iterator which can use the peek method to look at the next element. | make peek_iter = peek next iter |
| collect all | collect | Transforms an iterator into a collection. | make list = collect all iter |
| sum all | sum | Sums the elements of an iterator. | make total = sum all iter |
| multiply all | product | Iterates over the entire iterator, multiplying all the elements. | make val = multiply all iter |
| count all | count | Consumes the iterator, counting the number of iterations and returning it. | make amount = count all iter |
| first item | first/next | Returns the first element of the iterator. | make head = first item iter |
| last item | last | Consumes the iterator, returning the last element. | make tail = last item iter |
| smallest item | min | Returns the minimum element of an iterator. | make low = smallest item iter |
| largest item | max | Returns the maximum element of an iterator. | make high = largest item iter |
| group by | group_by | Groups elements of an iterator by a key-generating function. | make groups = group by iter
with |x| x.type |
| split by rule | partition | Consumes an iterator, creating two collections from it. | make left, right = split by rule iter
where |x| x > 0 |
| MATH | |||
| absolute value | abs | Computes the absolute value of a number. | make pos = absolute value -5 |
| minimum | min | Returns the minimum of two values. | make low = minimum 5 and 10 |
| maximum | max | Returns the maximum of two values. | make high = maximum 5 and 10 |
| clamp value | clamp | Restricts a value to a certain interval. | make safe = clamp value x
between 0 and 100 |
| round value | round | Returns the nearest integer to a number. | make r = round value 3.14 |
| floor value | floor | Returns the largest integer less than or equal to a number. | make f = floor value 3.8 |
| ceiling value | ceil | Returns the smallest integer greater than or equal to a number. | make c = ceiling value 3.1 |
| truncate value | trunc | Returns the integer part of a number. | make t = truncate value 3.99 |
| fraction part | fract | Returns the fractional part of a number. | make f = fraction part 3.14 |
| square root | sqrt | Returns the square root of a number. | make rt = square root 16 |
| cube root | cbrt | Returns the cube root of a number. | make rt = cube root 27 |
| power | pow | Raises a value to the power of a given exponent. | make p = power 2 to 3.5 |
| power with integer | powi | Raises a value to an integer power. | make p = power with integer 2 to 3 |
| exponential | exp | Returns `e^(self)`. | make e_val = exponential 2.0 |
| natural log | ln | Returns the natural logarithm of the number. | make log = natural log 10 |
| log base two | log2 | Returns the base 2 logarithm of the number. | make log = log base two 8 |
| log base ten | log10 | Returns the base 10 logarithm of the number. | make log = log base ten 100 |
| sine | sin | Computes the sine of a number. | make s = sine x |
| cosine | cos | Computes the cosine of a number. | make c = cosine x |
| tangent | tan | Computes the tangent of a number. | make t = tangent x |
| arc sine | asin | Computes the arcsine of a number. | make a = arc sine x |
| arc cosine | acos | Computes the arccosine of a number. | make a = arc cosine x |
| arc tangent | atan | Computes the arctangent of a number. | make a = arc tangent x |
| arc tangent two | atan2 | Computes the four quadrant arctangent. | make a = arc tangent two y and x |
| hyperbolic sine | sinh | Hyperbolic sine function. | make h = hyperbolic sine x |
| hyperbolic cosine | cosh | Hyperbolic cosine function. | make h = hyperbolic cosine x |
| hyperbolic tangent | tanh | Hyperbolic tangent function. | make h = hyperbolic tangent x |
| hypotenuse | hypot | Calculates the length of the hypotenuse of a right-angle triangle. | make h = hypotenuse 3 and 4 |
| modulo | rem / rem_euclid | Calculates the least nonnegative remainder of `a (mod b)`. | make m = modulo 5 by 2 |
| remainder | % | The remainder operator. | make r = 5 remainder 2 |
| greatest common divisor | gcd | Calculates the greatest common divisor. | make div = greatest common divisor
8 and 12 |
| least common multiple | lcm | Calculates the least common multiple. | make mult = least common multiple
4 and 6 |
| factorial | helper | Calculates the factorial of a number. | make f = factorial 5 |
| combinations | helper | Calculates combinations (n choose k). | make c = combinations 5 choose 2 |
| permutations | helper | Calculates permutations (n P k). | make p = permutations 5 pick 2 |
| sign of number | signum | Returns a number that represents the sign of self. | make s = sign of number -50 |
| is not a number | is_nan | Returns true if this value is NaN. | if is not a number val { ... } |
| is infinite | is_infinite | Returns true if this value is positive or negative infinity. | if is infinite val { ... } |
| random number | rand | Generates random values. | make r = random number |
| random in range | gen_range | Generates a random value within a range. | make r = random in range 1 to 10 |
| seed random | SeedableRng | Initializes a random number generator with a specific seed. | seed random with 12345 |
| noise | noise crate | Generates coherent noise (e.g., Perlin). | make n = noise at x, y |
| mix between | lerp | Linear interpolation between two values. | make v = mix between 0 and 100
by 0.5 |
| smooth step | smoothstep | Smooth interpolation between two values. | make v = smooth step 0 and 100
by 0.5 |
| STATS | |||
| average | mean | Calculates the arithmetic mean of a dataset. | make m = average data |
| middle value | median | Finds the median value of a dataset. | make m = middle value data |
| most common | mode | Finds the most frequently occurring value. | make m = most common data |
| variance | variance | Calculates the statistical variance of a dataset. | make v = variance data |
| standard deviation | stddev | Calculates the standard deviation. | make s = standard deviation data |
| lowest value | min | Finds the minimum value in a dataset. | make low = lowest value data |
| highest value | max | Finds the maximum value in a dataset. | make high = highest value data |
| quantile | quantile | Computes the specified quantile of a dataset. | make q = quantile 0.25 of data |
| percentile | percentile | Computes the specified percentile (0-100). | make p = percentile 90 of data |
| histogram | histogram | Groups data into frequency distribution bins. | make h = histogram data bins 10 |
| correlation | correlation | Computes the correlation coefficient between two datasets. | make c = correlation x and y |
| covariance | covariance | Computes the covariance between two datasets. | make c = covariance x and y |
| sample data | sample | Randomly samples a subset of elements. | make s = sample data size 5 |
| bootstrap data | bootstrap | Performs bootstrap resampling with replacement. | make b = bootstrap data times 100 |
| normalize data | normalization | Scales data to a standard range (e.g., 0 to 1). | make n = normalize data |
| z score | zscore | Calculates the standard score for elements. | make z = z score data |
| TIME | |||
| now | now | Gets the current system time. | make current_time = now |
| today | today | Gets the current date without time. | make current_date = today |
| read date | parse | Parses a string into a date/time object. | make d = read date "2026-03-19" |
| write date | format | Formats a date/time object into a string. | make s = write date d
as "YYYY-MM-DD" |
| add time | add duration | Adds a duration to a time object. | make future = add time 5 days to now |
| subtract time | sub duration | Subtracts a duration from a time object. | make past = subtract time 2 hours
from now |
| time difference | diff | Calculates the duration between two times. | make gap = time difference t1 and t2 |
| time zone | timezone | Sets or gets the timezone. | make tz = time zone "UTC" |
| utc time | Utc | Gets the current time in UTC. | make u = utc time now |
| local time | Local | Gets the current local time based on system settings. | make l = local time now |
| time stamp | timestamp | Gets the UNIX timestamp (seconds since epoch). | make ts = time stamp now |
| from time stamp | from_timestamp | Creates a time object from a UNIX timestamp. | make t = from time stamp 1700000000 |
| day of week | weekday | Gets the day of the week component. | make day = day of week today |
| month of year | month | Gets the month of the year component. | make m = month of year today |
| year number | year | Gets the year component. | make y = year number today |
| start of day | start of day helper | Gets the time at midnight for a given date. | make start = start of day today |
| end of day | end of day helper | Gets the time just before midnight for a given date. | make end = end of day today |
| steady clock | Instant | A monotonically non-decreasing clock for measuring intervals. | make timer = steady clock |
| fast clock | performance timer | High-resolution timer for performance profiling. | make profiler = fast clock |
| sleep | sleep | Suspends the current thread for a duration. | sleep 5 seconds |
| time passed | elapsed | Returns the amount of time elapsed since an Instant. | make duration = time passed timer |
| time out | timeout | Wraps an async operation with a time limit. | make res = time out 5 seconds
for fetch_data() |
| repeat every | interval | Creates a stream/loop that yields at a set interval. | repeat every 1 second {
print "tick"
} |
| RANDOM AND IDS | |||
| random whole number | int | Generates a random integer value. | make r = random whole number |
| random decimal | float | Generates a random floating-point number. | make f = random decimal |
| random true or false | bool | Generates a random boolean value. | make b = random true or false |
| random in range | range | Generates a random number within a specified range. | make r = random in range 1 to 100 |
| random bytes | bytes | Fills a buffer or returns a vector of random bytes. | make buf = random bytes size 32 |
| pick random | choose | Returns a random element from a slice. | make item = pick random my_list |
| shuffle random | shuffle | Randomizes the order of elements in a collection. | shuffle random my_list |
| set random seed | seed | Initializes the RNG with a specific deterministic seed. | set random seed 12345 |
| make uuid | Uuid | Generates a random UUID (v4). | make id = make uuid |
| make time uuid | Uuid v7 | Generates a time-ordered UUID (v7). | make id = make time uuid |
| make snowflake id | helper | Generates a distributed, time-based snowflake ID. | make id = make snowflake id |
| MEMORY AND POINTERS | |||
| make box | Box::new | Allocates memory on the heap and places a value into it. | make ptr = make box 42 |
| make shared | Rc::new / Arc::new | Creates a thread-local or thread-safe reference-counted pointer. | make ptr = make shared data |
| make weak shared | downgrade | Creates a non-owning weak reference to a shared pointer. | make weak = make weak shared ptr |
| borrow from cell | RefCell borrow | Immutably borrows the wrapped value of a RefCell. | make ref = borrow from cell data |
| borrow from cell to change | borrow_mut | Mutably borrows the wrapped value of a RefCell. | make mut_ref = borrow from cell
to change data |
| null pointer | ptr null | Creates a null raw pointer. | make ptr = null pointer |
| address of | addr_of | Gets the raw pointer address of a variable or place. | make ptr = address of var |
| read pointer | ptr read | Reads the value from a raw pointer without moving it. | make val = read pointer ptr |
| write pointer | ptr write | Overwrites a memory location via a raw pointer. | write pointer ptr with 42 |
| allocate memory | alloc | Allocates memory with a specific layout on the heap. | make mem = allocate memory layout |
| free memory | dealloc | Deallocates a memory block given its pointer and layout. | free memory ptr layout |
| copy memory | ptr copy | Copies bytes from one raw pointer to another. | copy memory from src to dst size 10 |
| move memory | ptr move helper | Moves memory bytes safely, allowing overlapping memory regions. | move memory from src to dst size 10 |
| swap memory | mem::swap | Swaps the values at two mutable locations. | swap memory a and b |
| replace memory | mem::replace | Replaces the value at a mutable location, returning the old value. | make old = replace memory a
with new_val |
| take memory | mem::take | Replaces a location with its default value, returning the old value. | make val = take memory a |
| zero memory | write_bytes / zeroize | Fills memory with zeroes or securely clears it. | zero memory buffer |
| fill memory | fill | Fills a slice with a specific value. | fill memory buffer with 0xFF |
| align memory | Layout | Describes the size and alignment requirements for an allocation. | make layout = align memory size 64 |
| map memory | memmap2 | Maps a file or device into RAM. | make map = map memory file |
| unmap memory | drop map | Unmaps a memory-mapped file/device via Drop. | unmap memory map |
| protect memory | mprotect wrapper | Changes memory page protection flags (read/write/exec). | protect memory map to read_only |
| lock memory | mlock | Locks memory pages to prevent them from being swapped to disk. | lock memory buffer |
| unlock memory | munlock | Unlocks memory pages, allowing them to be swapped out again. | unlock memory buffer |
| pin memory | Pin | Ensures data is not moved in memory (often for async). | pin memory future |
| unsafe block | unsafe | A block that bypasses standard safety and borrow checks. | unsafe block {
write pointer ptr with 0
} |
| DIAGNOSTICS AND COMPILER TOOLS | |||
| show info | log info | Logs a message at the Info level. | show info "Server started on port 80" |
| show warning | log warn | Logs a message at the Warning level. | show warning "Disk space is low" |
| show error | log error | Logs a message at the Error level. | show error "Failed to connect to DB" |
| show hint | compiler hint | Emits a diagnostic hint during compilation. | show hint "Did you mean `my_var`?" |
| show note | compiler note | Emits a diagnostic note during compilation. | show note "Defined here" |
| show trace | log trace | Logs a message at the Trace level (highly verbose). | show trace "Entering function X" |
| mark span | diagnostic span | Highlights a specific section of code in an error message. | mark span on line 10 |
| run lint | clippy/custom lint | Runs static analysis to catch common mistakes. | run lint strict_mode |
| fix lint | cargo fix/custom fix | Automatically applies compiler/linter suggestions. | fix lint format_errors |
| format code | rustfmt | Formats code according to style guidelines. | format code my_script.zc |
| check format | rustfmt --check | Verifies that code matches style guidelines without changing it. | check format project_dir |
| build code | cargo build | Compiles the project into an executable or library. | build code target_release |
| check code | cargo check | Quickly parses and type-checks code without generating binaries. | check code |
| emit code | rustc emit | Outputs specific compiler artifacts (LLVM IR, ASM, etc). | emit code as asm |
| show syntax tree | AST | Prints the Abstract Syntax Tree representation of the code. | show syntax tree func_body |
| show lowered code | IR/MIR | Prints the intermediate representation of the code. | show lowered code for logic |
| show tokens | token stream | Prints the raw lexical tokens parsed by the compiler. | show tokens macro_input |
| FILES AND PATHS | |||
| open file | File::open | Opens a file in read-only mode. | make f = open file "data.txt" |
| create file | File::create | Opens a file in write-only mode, truncating it if it exists. | make f = create file "log.txt" |
| read file | read_to_string | Reads the entire contents of a file into a string. | make txt = read file "config.json" |
| read file bytes | read | Reads the entire contents of a file into a byte vector. | make data = read file bytes "img.png" |
| read file lines | lines | Returns an iterator over the lines of a file. | repeat for line in read file lines "x.txt" |
| write file | write | Writes a string to a file. | write file "out.txt" with "Hello" |
| write file bytes | write | Writes a byte slice to a file. | write file bytes "bin.dat" with buffer |
| append file | OpenOptions append | Opens a file and appends a string to the end of it. | append file "log.txt" with "ERROR\n" |
| append file bytes | append bytes | Opens a file and appends bytes to the end of it. | append file bytes "stream.dat" with data |
| copy file | copy | Copies the contents of one file to another. | copy file "a.txt" to "b.txt" |
| move file | rename | Moves a file to a new path. | move file "temp.txt" to "final.txt" |
| rename file | rename | Renames a file in place. | rename file "old.txt" to "new.txt" |
| delete file | remove_file | Removes a file from the filesystem. | delete file "trash.txt" |
| truncate file | set_len | Truncates or extends the underlying file. | truncate file "data.bin" to 0 |
| sync file | sync_all | Ensures all OS-buffered data and metadata is written to disk. | sync file my_file |
| touch file | create/update time | Creates an empty file or updates its access/modification time. | touch file "lock.tmp" |
| file exists | exists | Checks if a file exists at the given path. | if file exists "config.json" { ... } |
| is file | is_file | Checks if a path points to a regular file. | if is file my_path { ... } |
| is folder | is_dir | Checks if a path points to a directory. | if is folder my_path { ... } |
| file info | metadata | Gets metadata (size, type, perms) for a file. | make info = file info "data.txt" |
| file metadata | metadata | Gets detailed OS-specific metadata. | make meta = file metadata "data.txt" |
| file permissions | permissions | Gets the permissions associated with a file. | make perms = file permissions "script.sh" |
| file owner | metadata ext | Gets the owner UID of the file (Unix). | make owner = file owner "data.txt" |
| file group | metadata ext | Gets the group GID of the file (Unix). | make group = file group "data.txt" |
| file created | created | Gets the creation time of the file. | make time = file created "data.txt" |
| file changed | modified | Gets the last modification time of the file. | make time = file changed "data.txt" |
| file opened | accessed | Gets the last access time of the file. | make time = file opened "data.txt" |
| hash file | read + hash | Reads a file and computes its hash (e.g., SHA256). | make sum = hash file "data.txt" |
| list files | read_dir | Returns an iterator over the entries within a directory. | make entries = list files "./src" |
| walk files | walkdir | Recursively iterates over all files in a directory tree. | repeat for file in walk files "./src" |
| watch files | notify | Watches a file or directory for filesystem events. | watch files "./src" for changes |
| make hard link | hard_link | Creates a new hard link on the filesystem. | make hard link "target" to "link" |
| make symlink | symlink | Creates a new symbolic link on the filesystem. | make symlink "target" to "link" |
| make temp file | tempfile | Creates an unnamed temporary file that is deleted on drop. | make tmp = make temp file |
| make path | PathBuf::new | Creates an empty, mutable path buffer. | make p = make path |
| join path | join | Creates a new path by adjoining a path to the current one. | make p2 = join path p with "src" |
| push path | push | Extends the path buffer with a new path component. | push path mut_p "main.rs" |
| pop path | pop | Truncates the path buffer to its parent. | pop path mut_p |
| parent path | parent | Returns a path representing the parent directory. | make parent = parent path my_path |
| file name | file_name | Returns the final component of the path. | make name = file name my_path |
| file stem | file_stem | Returns the file name without its extension. | make stem = file stem my_path |
| file extension | extension | Returns the file extension. | make ext = file extension my_path |
| clean path | normalize | Resolves dots (`.`, `..`) to make a path clean. | make clean = clean path my_path |
| absolute path | canonicalize | Returns the canonical, absolute form of a path. | make abs = absolute path "./config" |
| relative path | pathdiff | Calculates a relative path from one path to another. | make rel = relative path a from b |
| full path | absolute helper | Expands `~` and makes a path absolute. | make full = full path "~/data" |
| is absolute path | is_absolute | Returns true if the path is absolute. | if is absolute path my_path { ... } |
| is relative path | is_relative | Returns true if the path is relative. | if is relative path my_path { ... } |
| path parts | components | Returns an iterator over the individual path components. | repeat for part in path parts my_path |
| current folder | current_dir | Gets the current working directory as a Path. | make cwd = current folder |
| home folder | home_dir | Gets the path to the current user's home directory. | make home = home folder |
| temp folder | temp_dir | Gets the path to the system's temporary directory. | make tmp = temp folder |
| PERMISSIONS | |||
| can read | permission check | Checks if the current process has read access to a file. | if can read "secret.txt" { ... } |
| can write | permission check | Checks if the current process has write access to a file. | if can write "log.txt" { ... } |
| can run | executable check | Checks if a file has execution permissions. | if can run "script.sh" { ... } |
| path exists | exists | Checks if a given path actually exists on the filesystem. | if path exists "/tmp/lock" { ... } |
| change mode | chmod | Changes the Unix permission mode of a file. | change mode "script.sh" to 0o755 |
| change owner | chown | Changes the Unix owner of a file. | change owner "app.bin" to "root" |
| change group | chgrp | Changes the Unix group of a file. | change group "data" to "admin" |
| set mask | umask | Sets the calling process's file mode creation mask. | make old = set mask 0o022 |
| get access list | ACL get | Reads the Access Control List (ACL) of a file. | make acl = get access list "x.txt" |
| set access list | ACL set | Writes a new Access Control List (ACL) to a file. | set access list "x.txt" to acl |
| raise rights | elevate helper | Requests elevated permissions (e.g., sudo or UAC prompt). | raise rights install_driver() |
| drop rights | drop privilege helper | Lowers privileges to a safer user account (e.g., "nobody"). | drop rights to "nobody" |
| STREAMS AND IO | |||
| standard input | stdin | A handle to the standard input stream of a process. | make in = standard input |
| standard output | stdout | A handle to the standard output stream of a process. | make out = standard output |
| standard error | stderr | A handle to the standard error stream of a process. | make err = standard error |
| read stream | read | Pulls some bytes from a stream into a provided buffer. | make count = read stream in
into buffer |
| read all | read_to_end | Reads all bytes from a stream until EOF is reached. | read all from socket into buffer |
| read exact | read_exact | Reads the exact number of bytes required to fill a buffer. | read exact from file size 10 into chunk |
| read line | read_line | Reads all bytes until a newline into a string. | read line from in into str_buf |
| write stream | write | Writes some portion of a buffer to a stream. | make count = write stream out
with data |
| write all | write_all | Continuously writes a buffer to a stream until all bytes are written. | write all to stream out with data |
| flush stream | flush | Ensures all intermediately buffered contents reach their destination. | flush stream out |
| seek stream | seek | Moves the cursor position within the stream to a specific byte offset. | seek stream file to 0 |
| stream position | tell | Returns the current cursor position/offset within the stream. | make pos = stream position file |
| copy stream | io::copy | Copies the entire contents of a reader into a writer. | copy stream from file_in to socket_out |
| pipe stream | os pipe helper | Creates a unidirectional OS-level pipe returning a read and write handle. | make rx, tx = pipe stream |
| buffer input | BufReader | Wraps a raw reader with an internal memory buffer to reduce syscalls. | make buffered_in = buffer input in |
| buffer output | BufWriter | Wraps a raw writer with an internal memory buffer to batch writes. | make buffered_out = buffer output out |
| ENCODING AND DATA | |||
| encode base16 | hex encode | Encodes data into a Base16 (hexadecimal) string. | make hex = encode base16 data |
| decode base16 | hex decode | Decodes a Base16 (hexadecimal) string into bytes. | make bytes = decode base16 hex |
| encode base32 | base32 | Encodes data into a Base32 string. | make b32 = encode base32 data |
| decode base32 | base32 | Decodes a Base32 string into bytes. | make bytes = decode base32 b32 |
| encode base58 | bs58 | Encodes data into a Base58 string (often used in crypto). | make b58 = encode base58 data |
| decode base58 | bs58 | Decodes a Base58 string into bytes. | make bytes = decode base58 b58 |
| encode base64 | base64 | Encodes data into a Base64 string. | make b64 = encode base64 data |
| decode base64 | base64 | Decodes a Base64 string into bytes. | make bytes = decode base64 b64 |
| encode hex | hex | Encodes data into a lowercase hexadecimal string. | make h = encode hex buffer |
| decode hex | hex | Decodes a hexadecimal string back into bytes. | make b = decode hex h |
| encode url | urlencoding | Percent-encodes a string for safe use in a URL. | make safe = encode url "a/b c" |
| decode url | urlencoding | Decodes a percent-encoded URL string. | make raw = decode url safe |
| encode html | html_escape | Escapes characters safe for HTML (`<` to `<`). | make safe = encode html "" |
| decode html | html_escape | Unescapes HTML entities back to characters. | make raw = decode html "<b>" |
| encode utf8 | bytes/string conversion | Converts a string into a UTF-8 byte array. | make bytes = encode utf8 text |
| decode utf8 | from_utf8 | Attempts to parse a byte array into a UTF-8 string. | make text = decode utf8 bytes |
| encode utf16 | encode_utf16 | Encodes a string into a UTF-16 representation. | make wide = encode utf16 text |
| decode utf16 | from_utf16 | Decodes UTF-16 data back into a string. | make text = decode utf16 wide |
| encode ascii | helper | Ensures or converts a string strictly to ASCII. | make asc = encode ascii text |
| decode ascii | helper | Reads ASCII byte data into a string. | make text = decode ascii bytes |
| compress gzip | flate2 | Compresses a byte stream using Gzip. | make zip_data = compress gzip data |
| decompress gzip | flate2 | Decompresses a Gzip byte stream. | make data = decompress gzip zip_data |
| make zip | zip writer | Creates a new ZIP archive writer. | make archive = make zip "out.zip" |
| open zip | zip archive | Opens an existing ZIP archive for reading. | make archive = open zip "in.zip" |
| add to zip | zip writer add | Adds a file or data stream into a ZIP archive. | add to zip archive "file.txt" |
| extract zip | zip archive extract | Extracts files from a ZIP archive. | extract zip archive to "./folder" |
| list zip | zip archive list | Lists the contents of a ZIP archive. | make files = list zip archive |
| make tar | tar builder | Creates a new TAR archive builder. | make archive = make tar "out.tar" |
| open tar | tar archive | Opens an existing TAR archive. | make archive = open tar "in.tar" |
| add to tar | tar builder append | Appends a file to a TAR archive. | add to tar archive "script.sh" |
| extract tar | tar archive unpack | Unpacks a TAR archive to a directory. | extract tar archive to "./" |
| open rar | unrar | Opens a RAR archive for reading. | make r = open rar "data.rar" |
| extract rar | unrar | Extracts contents from a RAR archive. | extract rar r to "./out" |
| compress bz2 | bzip2 | Compresses data using bzip2. | make bz = compress bz2 data |
| decompress bz2 | bzip2 | Decompresses bzip2 data. | make data = decompress bz2 bz |
| compress xz | xz2 | Compresses data using xz. | make x = compress xz data |
| decompress xz | xz2 | Decompresses xz data. | make data = decompress xz x |
| compress zstd | zstd | Compresses data using zstandard. | make zs = compress zstd data |
| decompress zstd | zstd | Decompresses zstandard data. | make data = decompress zstd zs |
| compress lz4 | lz4 | Compresses data using the fast LZ4 algorithm. | make l = compress lz4 data |
| decompress lz4 | lz4 | Decompresses LZ4 data. | make data = decompress lz4 l |
| read json | serde_json::from_str | Deserializes a JSON string into an object. | make obj = read json "{}" |
| write json | serde_json::to_string | Serializes an object into a JSON string. | make s = write json obj |
| read json file | read + parse | Reads a file and parses it as JSON. | make config = read json file "a.json" |
| write json file | serialize + write | Serializes an object and writes it as a JSON file. | write json file "b.json" with data |
| read yaml | serde_yaml | Deserializes a YAML string into an object. | make obj = read yaml "key: val" |
| write yaml | serde_yaml | Serializes an object into a YAML string. | make s = write yaml obj |
| read yaml file | read + parse | Reads a file and parses it as YAML. | make cfg = read yaml file "c.yaml" |
| write yaml file | serialize + write | Serializes an object and writes it as a YAML file. | write yaml file "d.yaml" with data |
| read toml | toml | Deserializes a TOML string into an object. | make obj = read toml "a = 1" |
| write toml | toml | Serializes an object into a TOML string. | make s = write toml obj |
| read toml file | read + parse | Reads a file and parses it as TOML. | make cfg = read toml file "Cargo.toml" |
| write toml file | serialize + write | Serializes an object and writes it as a TOML file. | write toml file "out.toml" with obj |
| read xml | quick_xml | Parses an XML string. | make doc = read xml "<a></a>" |
| write xml | serializer | Serializes data into an XML string. | make s = write xml doc |
| read xml file | read + parse | Reads and parses an XML file. | make doc = read xml file "a.xml" |
| write xml file | serialize + write | Writes an object as an XML file. | write xml file "b.xml" with doc |
| read csv | csv reader | Parses CSV text into records. | make rows = read csv "1,2\n3,4" |
| write csv | csv writer | Formats records into CSV text. | make s = write csv data |
| append csv | append writer | Appends records to an existing CSV. | append csv "data.csv" with row |
| read ini | ini parser | Parses an INI formatted string or file. | make cfg = read ini "config.ini" |
| write ini | ini writer | Formats configuration data into INI format. | write ini "config.ini" with cfg |
| encode msgpack | rmp-serde | Serializes data into MessagePack format. | make mp = encode msgpack data |
| decode msgpack | rmp-serde | Deserializes MessagePack data into an object. | make obj = decode msgpack mp |
| encode bincode | bincode | Serializes data into the compact bincode format. | make bin = encode bincode data |
| decode bincode | bincode | Deserializes bincode data into an object. | make obj = decode bincode bin |
| read plist | plist | Parses Apple Property List files. | make pl = read plist "Info.plist" |
| write plist | plist | Writes data to an Apple Property List file. | write plist "Info.plist" with pl |
| CONFIG | |||
| load config | config loader | Loads configuration from various sources. | make cfg = load config |
| save config | save config | Saves the current configuration state to a destination. | save config cfg to "out.toml" |
| get config | getter | Retrieves a specific configuration value by key. | make port = get config "port" |
| set config | setter | Sets a specific configuration value. | set config "port" to 8080 |
| config has | contains | Checks if a configuration key exists. | if config has "port" { ... } |
| merge config | merge | Merges another configuration source into the current one. | merge config overrides |
| clear config | clear | Clears all loaded configuration values. | clear config |
| config file | file source | Specifies a file as a configuration source. | make src = config file "app.json" |
| config env | env source | Specifies environment variables as a configuration source. | make src = config env |
| watch config | notify | Watches the configuration source for runtime changes. | watch config cfg { ... } |
| check config | validate | Validates the loaded configuration against a schema. | check config cfg |
| THREADS, TASKS, CHANNELS | |||
| start thread | thread spawn | Spawns a new OS thread. | make t = start thread {
do_work()
} |
| wait for thread | join | Waits for an associated thread to finish. | wait for thread t |
| detach thread | drop handle | Allows a thread to run independently in the background. | detach thread t |
| sleep thread | sleep | Puts the current thread to sleep for a duration. | sleep thread 5 seconds |
| yield thread | yield_now | Cooperatively gives up a timeslice to the OS scheduler. | yield thread |
| thread id | current id | Gets the unique identifier of the current thread. | make id = thread id |
| thread name | builder name | Sets or gets the name of the thread. | make name = thread name |
| make lock | Mutex::new | Creates a mutual exclusion primitive for protecting shared data. | make mx = make lock data |
| take lock | lock | Acquires a mutex, blocking the thread until it is available. | make guard = take lock mx |
| try lock | try_lock | Attempts to acquire a mutex without blocking. | make guard = try lock mx |
| free lock | guard drop | Explicitly releases a held lock. | free lock guard |
| make read write lock | RwLock::new | Creates a lock allowing multiple readers or one writer. | make rw = make read write lock data |
| read lock | read | Acquires a reader-writer lock for shared reading. | make guard = read lock rw |
| write lock | write | Acquires a reader-writer lock for exclusive writing. | make guard = write lock rw |
| free read write lock | guard drop | Releases a reader or writer lock. | free read write lock guard |
| wait on signal | Condvar wait | Blocks the thread until a condition variable is notified. | wait on signal cv lock guard |
| wake one | notify_one | Wakes up one thread waiting on a condition variable. | wake one cv |
| wake all | notify_all | Wakes up all threads waiting on a condition variable. | wake all cv |
| atomic read | load | Safely reads an atomic value. | make val = atomic read flag |
| atomic write | store | Safely writes an atomic value. | atomic write flag with true |
| atomic swap | swap | Safely swaps an atomic value and returns the old one. | make old = atomic swap flag to false |
| atomic add | fetch_add | Safely adds to an atomic integer. | atomic add counter 1 |
| atomic subtract | fetch_sub | Safely subtracts from an atomic integer. | atomic subtract counter 1 |
| atomic and | fetch_and | Safely performs a bitwise AND on an atomic integer. | atomic and flags 0x01 |
| atomic or | fetch_or | Safely performs a bitwise OR on an atomic integer. | atomic or flags 0x10 |
| atomic xor | fetch_xor | Safely performs a bitwise XOR on an atomic integer. | atomic xor flags 0x11 |
| run once | Once / OnceLock | Ensures a block of code runs exactly once globally. | run once { init_system() } |
| start task | tokio::spawn | Spawns a new asynchronous task onto the runtime. | make handle = start task {
fetch_data()
} |
| wait for task | await join handle | Waits for an asynchronous task to complete. | wait for task handle |
| stop task | abort | Cancels an asynchronous task. | stop task handle |
| join tasks | join | Waits for multiple asynchronous tasks to finish. | join tasks t1 and t2 |
| choose task | select | Waits on multiple concurrent branches, returning the first to finish. | choose task {
a => print a,
b => print b
} |
| sleep task | tokio sleep | Asynchronously waits for a duration without blocking the thread. | sleep task 2 seconds |
| yield task | yield_now | Yields execution back to the async runtime scheduler. | yield task |
| ready future | ready | Creates a future that is immediately ready with a value. | make fut = ready future 42 |
| pending future | pending | Creates a future that never resolves. | make fut = pending future |
| next stream item | next | Asynchronously gets the next item from an async stream. | make item = wait for next stream item s |
| collect stream | collect | Asynchronously collects all items from a stream. | make list = wait for collect stream s |
| make async lock | tokio mutex | Creates an async-aware mutex. | make mx = make async lock data |
| make async channel | mpsc | Creates an async multi-producer, single-consumer channel. | make tx, rx = make async channel |
| make one shot | oneshot | Creates an async channel for sending exactly one value. | make tx, rx = make one shot |
| make broadcast | broadcast | Creates an async multi-producer, multi-consumer channel. | make tx, rx = make broadcast |
| make watch channel | watch | Creates an async channel for watching a single value. | make tx, rx = make watch channel 0 |
| make semaphore | semaphore | Creates an async semaphore to limit concurrency. | make sem = make semaphore 5 |
| make barrier | barrier | Creates an async barrier to synchronize multiple tasks. | make b = make barrier 3 |
| make channel | channel | Creates a standard synchronous multi-producer, single-consumer channel. | make tx, rx = make channel |
| send on channel | send | Sends a value down a channel. | send on channel tx 42 |
| get from channel | recv | Blocks waiting for a value from a channel. | make msg = get from channel rx |
| try get from channel | try_recv | Attempts to get a value from a channel without blocking. | make msg = try get from channel rx |
| close channel | close | Closes the channel, preventing further sends. | close channel rx |
| send on bus | publish | Publishes a message to an event bus. | send on bus "events" msg |
| watch bus | subscribe | Subscribes to an event bus topic. | make sub = watch bus "events" |
| stop watching bus | unsubscribe | Unsubscribes from an event bus topic. | stop watching bus sub |
| PROCESS, SHELL, HOST | |||
| make process | Command::new | Creates a new process builder for the given executable. | make p = make process "git" |
| add process arg | arg | Adds a single argument to pass to the program. | add process arg p "status" |
| add process args | args | Adds multiple arguments to pass to the program. | add process args p ["commit", "-m"] |
| run process | status/output/spawn | Executes the process builder. | make child = run process p |
| wait for process | wait | Waits for the child process to exit completely. | wait for process child |
| kill process | kill | Forces the child process to exit immediately. | kill process child |
| process status | status | Gets the exit status/code of a completed process. | make code = process status child |
| process output | output | Executes and captures the standard output of the process. | make out = process output p |
| process input | stdin | Gets a handle to the child's standard input stream. | make in = process input child |
| process stdout | stdout | Gets a handle to the child's standard output stream. | make out = process stdout child |
| process stderr | stderr | Gets a handle to the child's standard error stream. | make err = process stderr child |
| pipe process | piped stdio | Configures process streams to be piped to/from the parent. | pipe process p stdout |
| send process signal | signal helper | Sends a specific OS signal to a running process. | send process signal child SIGTERM |
| end process | terminate helper | Gracefully asks a process to terminate. | end process child |
| run as daemon | daemonize | Detaches a process to run in the background. | run as daemon p |
| process id | child id | Gets the OS-assigned identifier of the process. | make pid = process id child |
| parent process | parent helper | Gets the ID of the parent process. | make ppid = parent process child |
| set process priority | setpriority | Adjusts the scheduling priority of the process. | set process priority child to 10 |
| nice process | nice | Adjusts the niceness (Unix CPU priority) of the process. | nice process child by 5 |
| set process affinity | affinity helper | Pins the process to specific CPU cores. | set process affinity child to [0, 1] |
| list processes | sysinfo | Gets a list of all running system processes. | make procs = list processes |
| process info | sysinfo | Retrieves detailed metrics for a specific process ID. | make info = process info pid |
| set process env | command envs | Sets environment variables for the process before spawning. | set process env p "DEBUG" to "1" |
| run shell | shell wrapper | Executes a string command in the system's default shell. | run shell "echo Hello World" |
| exec shell | exec helper | Replaces the current process entirely with a shell command. | exec shell "bash" |
| start shell | spawn shell | Spawns a shell process asynchronously in the background. | make sh = start shell "top" |
| pipe shell | pipe commands | Connects the standard output of one shell command to another. | pipe shell "ls" to "grep rust" |
| redirect shell | redirect streams | Redirects shell output to a specific file or stream. | redirect shell "ls" to file "out.txt" |
| capture shell | capture output | Runs a shell command and captures its string output. | make out = capture shell "date" |
| shell folder | current dir override | Sets the working directory for a specific shell command. | shell folder "make build" to "./src" |
| shell env | env override | Sets environment variables exclusively for a shell command. | shell env "node script.js" "PORT=80" |
| find shell command | which | Locates the executable path of a command in the system PATH. | make path = find shell command "git" |
| shell alias | alias helper | Defines a temporary shell alias for execution. | shell alias "ll" to "ls -la" |
| source shell file | source helper | Evaluates a file containing shell commands within the runtime. | source shell file ".env" |
| wait for shell | wait | Waits for an asynchronous shell process to finish. | wait for shell sh |
| kill shell | kill | Terminates a running shell process. | kill shell sh |
| exit shell | process exit | Terminates the current ZelC program with a status code. | exit shell 0 |
| program args | env::args | Returns an iterator over arguments passed to the application. | make args = program args |
| program arg | nth arg | Retrieves a specific application argument by its index. | make file = program arg 1 |
| get env | env::var | Fetches the value of an environment variable. | make p = get env "PATH" |
| list env | env::vars | Returns an iterator over all environment variables. | repeat for k, v in list env { ... } |
| set env | set_var | Sets the value of an environment variable for the current process. | set env "DEBUG" to "true" |
| remove env | remove_var | Removes an environment variable from the current process. | remove env "DEBUG" |
| current folder | current_dir | Gets the current working directory path. | make cwd = current folder |
| change folder | set_current_dir | Changes the working directory of the current process. | change folder "/tmp" |
| temp folder | temp_dir | Gets the system's temporary directory path. | make tmp = temp folder |
| home folder | home_dir | Gets the current user's home directory path. | make home = home folder |
| program path | current_exe | Gets the full filesystem path to the currently running executable. | make exe = program path |
| shell path | SHELL / ComSpec | Gets the path to the system's default shell environment. | make sh = shell path |
| OS AND SYSTEM | |||
| system name | OS | Returns the name of the operating system (e.g., "linux", "windows"). | make os = system name |
| system version | os_info | Retrieves the specific version of the operating system. | make ver = system version |
| system architecture | ARCH | Returns the CPU architecture (e.g., "x86_64", "aarch64"). | make arch = system architecture |
| system platform | platform | Gets platform-specific environment information. | make plat = system platform |
| kernel version | uname/sysinfo | Gets the version of the OS kernel. | make kv = kernel version |
| host name | hostname | Gets the network host name of the current machine. | make host = host name |
| system info | uname | Gets general system identification information. | make info = system info |
| user name | whoami/users | Gets the username of the current active user. | make user = user name |
| user id | uid | Gets the numeric user ID of the current user. | make id = user id |
| group id | gid | Gets the numeric group ID of the current user. | make gid = group id |
| group name | group | Gets the group name of the current user. | make gname = group name |
| home path | home_dir | Gets the home directory path of the current user. | make home = home path |
| temp path | temp_dir | Gets the temporary directory path of the system. | make tmp = temp path |
| working folder | current_dir | Gets the current working directory path. | make cwd = working folder |
| change working folder | set_current_dir | Changes the working directory of the current process. | change working folder "/var/log" |
| get system env | env::var | Fetches the value of an environment variable. | make path = get system env "PATH" |
| set system env | set_var | Sets an environment variable globally for the process. | set system env "DEBUG" to "1" |
| remove system env | remove_var | Removes an environment variable from the process. | remove system env "DEBUG" |
| cpu count | available_parallelism | Gets the number of available CPU logical cores. | make cores = cpu count |
| cpu info | sysinfo | Gets detailed CPU specifications and load per core. | make cpu_data = cpu info |
| total memory | sysinfo | Gets total physical RAM available in the system in bytes. | make mem = total memory |
| free memory | sysinfo | Gets currently available physical RAM in bytes. | make available = free memory |
| total swap | sysinfo | Gets total swap space available in bytes. | make swp = total swap |
| free swap | sysinfo | Gets currently available swap space in bytes. | make free_swp = free swap |
| list disks | sysinfo | Gets a list of connected storage disks and partitions. | make disks = list disks |
| disk usage | sysinfo | Gets storage usage statistics for a specific disk. | make usage = disk usage "/dev/sda1" |
| network stats | sysinfo | Gets traffic statistics for network interfaces. | make net = network stats "eth0" |
| system load | loadavg | Gets the 1, 5, and 15-minute system load averages. | make load = system load |
| uptime | sysinfo | Gets the system uptime in seconds. | make up = uptime |
| boot time | sysinfo | Gets the Unix timestamp of when the system booted. | make boot = boot time |
| list system processes | sysinfo | Gets a list of all currently running OS processes. | make procs = list system processes |
| system process info | sysinfo | Gets detailed metrics (RAM/CPU) for a specific OS process. | make p_info = system process info pid |
| handle signal | signal-hook | Registers a callback for OS-level signals (like SIGINT). | handle signal SIGINT {
print "Exiting gracefully"
} |
| kill system process | kill | Sends a termination signal to an arbitrary OS process. | kill system process pid |
| open with system | opener | Opens a file or URL using the system's default handler. | open with system "https://rust-lang.org" |
| find executable | which | Locates the full path of an executable in the system PATH. | make git_path = find executable "git" |
| restart system | reboot helper | Issues a system reboot command (requires privileges). | restart system |
| shut down system | shutdown helper | Issues a system shutdown command (requires privileges). | shut down system |
| sleep system | suspend helper | Puts the operating system into suspend/sleep mode. | sleep system |
| hibernate system | hibernate helper | Puts the operating system into hibernation mode. | hibernate system |
| lock screen | platform helper | Locks the current user's desktop session. | lock screen |
| system clipboard | arboard | Reads from or writes to the OS clipboard. | make txt = system clipboard read |
| NETWORKING | |||
| ip address | IpAddr | Represents an IPv4 or IPv6 network address. | make ip = ip address "127.0.0.1" |
| port number | u16 | Represents a 16-bit network port number. | make port = port number 8080 |
| resolve host | ToSocketAddrs | Resolves a domain name into a list of IP addresses. | make addrs = resolve host "localhost:80" |
| reverse lookup | reverse dns | Resolves an IP address back to its domain name. | make host = reverse lookup "8.8.8.8" |
| ping host | ping helper | Sends ICMP echo requests to measure reachability and latency. | make latency = ping host "1.1.1.1" |
| trace route | traceroute helper | Traces the network hops taken to reach a destination. | make hops = trace route "google.com" |
| open tcp | TcpStream::connect | Opens a TCP connection to a remote host. | make conn = open tcp "127.0.0.1:80" |
| listen tcp | TcpListener::bind | Binds a TCP listener to a local network address. | make server = listen tcp "0.0.0.0:8080" |
| accept tcp | accept | Accepts an incoming TCP connection from a client. | make client = accept tcp server |
| read tcp | stream read | Reads bytes from an open TCP connection. | make bytes = read tcp conn |
| write tcp | stream write | Writes bytes to an open TCP connection. | write tcp conn with data |
| close tcp | shutdown/drop | Closes both the read and write halves of a TCP connection. | close tcp conn |
| bind udp | UdpSocket::bind | Binds a UDP socket to a local address. | make socket = bind udp "0.0.0.0:9000" |
| send udp | send_to | Sends a UDP datagram to a specific remote address. | send udp socket to "1.1.1.1:53" with query |
| get udp | recv_from | Receives a UDP datagram and the sender's address. | make msg, sender = get udp socket |
| join multicast | join_multicast | Subscribes a UDP socket to a multicast group. | join multicast socket group "224.0.0.1" |
| leave multicast | leave_multicast | Unsubscribes a UDP socket from a multicast group. | leave multicast socket group "224.0.0.1" |
| open raw socket | socket2/pnet | Opens a raw network socket for custom packet crafting. | make raw = open raw socket |
| set socket option | socket2 | Configures low-level socket options (e.g., TTL, keepalive). | set socket option conn TTL to 64 |
| show routes | route helper | Retrieves the system's IP routing table. | make routes = show routes |
| list interfaces | if_addrs | Lists all network interfaces available on the system. | make ifaces = list interfaces |
| bring interface up | interface helper | Enables a network interface (requires privileges). | bring interface up "eth0" |
| bring interface down | interface helper | Disables a network interface (requires privileges). | bring interface down "eth0" |
| read arp | ARP helper | Reads the system's ARP (Address Resolution Protocol) cache. | make cache = read arp |
| mac address | MAC helper | Retrieves the hardware MAC address of a network interface. | make mac = mac address "eth0" |
| mtu size | MTU helper | Retrieves the Maximum Transmission Unit of an interface. | make size = mtu size "eth0" |
| WEB AND HTTP | |||
| make web client | reqwest client | Creates an asynchronous HTTP client capable of connection pooling. | make client = make web client |
| get request | GET | Prepares an HTTP GET request to retrieve a resource. | make req = get request "https://api.com" |
| post request | POST | Prepares an HTTP POST request to submit data. | make req = post request "https://api.com" |
| put request | PUT | Prepares an HTTP PUT request to replace a resource. | make req = put request "https://api.com" |
| patch request | PATCH | Prepares an HTTP PATCH request to partially update a resource. | make req = patch request "https://api.com" |
| delete request | DELETE | Prepares an HTTP DELETE request to remove a resource. | make req = delete request "https://api.com" |
| head request | HEAD | Prepares an HTTP HEAD request to fetch headers without the body. | make req = head request "https://api.com" |
| options request | OPTIONS | Prepares an HTTP OPTIONS request to check supported methods/CORS. | make req = options request "https://api.com" |
| trace request | TRACE | Prepares an HTTP TRACE request for diagnostic routing. | make req = trace request "https://api.com" |
| send request | generic request | Dispatches the prepared HTTP request and awaits the response. | make res = send request req |
| set header | header insert | Adds a custom HTTP header to the request. | set header req "Accept" to "*/*" |
| get headers | header map | Retrieves the collection of headers from a response. | make hdrs = get headers res |
| set cookie | cookie handling | Injects a cookie into the client's cookie store or request. | set cookie client "session=123" |
| get cookies | cookie store | Retrieves the managed cookie store from the client. | make jar = get cookies client |
| set query | query params | Appends URL-encoded query parameters to the request. | set query req "page" to 2 |
| send form | form body | Sets the request body to application/x-www-form-urlencoded. | send form req with form_data |
| send multipart | multipart | Sets the request body to multipart/form-data. | send multipart req with part_data |
| send json | json body | Serializes data and sets the request body to application/json. | send json req with my_obj |
| upload file | multipart upload | Attaches a file stream to a multipart request. | upload file form "doc.pdf" |
| download file | bytes save | Streams the response body directly into a file on disk. | download file res to "dl.zip" |
| stream response | streaming body | Retrieves the response body as an async stream of byte chunks. | make stream = stream response res |
| follow redirects | redirect policy | Configures the client's policy for following HTTP redirects. | follow redirects client true |
| set proxy | proxy config | Configures the client to route traffic through a proxy server. | set proxy client "http://proxy:80" |
| set timeout | timeout config | Sets the maximum duration allowed for the request to complete. | set timeout client 30 seconds |
| retry request | retry helper | Adds exponential backoff and retry logic to a request. | retry request req 3 times |
| use basic auth | basic_auth | Configures the request with HTTP Basic Authentication. | use basic auth req "user" "pass" |
| use bearer auth | bearer_auth | Configures the request with an OAuth/Bearer Token. | use bearer auth req "token_xyz" |
| use digest auth | digest helper | Configures the request to use Digest Authentication. | use digest auth req "user" "pass" |
| use mutual tls | mTLS | Configures the client with a client certificate for mTLS. | use mutual tls client my_cert |
| set tls | tls config | Adjusts TLS settings (e.g., specifying trusted roots or ignoring validation). | set tls client insecure |
| cache response | cache helper | Instructs the client to utilize a local response cache. | cache response client true |
| response status | status | Retrieves the HTTP status code from the response. | make code = response status res |
| response text | text | Consumes the response body into a UTF-8 string. | make body = response text res |
| response bytes | bytes | Consumes the response body into a raw byte vector. | make raw = response bytes res |
| save response | save file | Writes the completely downloaded response to a disk path. | save response res to "img.png" |
| set range | range header | Sets the Range header to fetch partial content (resuming downloads). | set range req from 0 to 1024 |
| use etag | etag helper | Handles ETag headers for conditional requests. | use etag req "W/12345" |
| WEBSOCKETS, EVENTS, REALTIME | |||
| open websocket | ws connect | Connects to a remote WebSocket server. | make ws = open websocket "ws://api.com" |
| send websocket | ws send | Sends a text or binary message over a WebSocket. | send websocket ws "Hello Server" |
| get websocket | ws recv | Receives the next message from the WebSocket stream. | make msg = get websocket ws |
| close websocket | ws close | Closes the WebSocket connection cleanly. | close websocket ws |
| ping websocket | ws ping | Sends a ping control frame to keep the connection alive. | ping websocket ws |
| pong websocket | ws pong | Sends a pong control frame in response to a ping. | pong websocket ws |
| subscribe websocket | subscribe | Subscribes to a specific topic over the socket (application-level). | subscribe websocket ws to "updates" |
| unsubscribe websocket | unsubscribe | Unsubscribes from a previously subscribed topic. | unsubscribe websocket ws from "updates" |
| open event stream | SSE connect | Connects to a Server-Sent Events stream. | make sse = open event stream "http://stream" |
| read event stream | next SSE | Awaits the next event from the SSE stream. | make event = read event stream sse |
| close event stream | close SSE | Closes the SSE connection. | close event stream sse |
| make rtc peer | WebRTC peer | Initializes a new WebRTC peer connection. | make peer = make rtc peer |
| make rtc offer | offer | Creates an SDP offer to initiate a WebRTC connection. | make offer = make rtc offer peer |
| make rtc answer | answer | Creates an SDP answer to respond to an offer. | make answer = make rtc answer peer |
| handle rtc ice | ice | Processes incoming ICE candidates for NAT traversal. | handle rtc ice peer candidate |
| make data channel | data channel | Opens a WebRTC data channel for arbitrary data transmission. | make ch = make data channel peer |
| make media stream | media stream | Attaches audio/video media tracks to the peer connection. | make stream = make media stream peer |
| DNS, TLS, SSH, FTP | |||
| lookup dns | resolver lookup | Queries the DNS resolver for a domain. | make records = lookup dns "rust-lang.org" |
| lookup a record | A | Queries for IPv4 addresses (A records). | make ipv4 = lookup a record "example.com" |
| lookup aaaa record | AAAA | Queries for IPv6 addresses (AAAA records). | make ipv6 = lookup aaaa record "example.com" |
| lookup mx record | MX | Queries for Mail Exchange (MX) records. | make mx = lookup mx record "example.com" |
| lookup txt record | TXT | Queries for text strings (TXT records). | make txt = lookup txt record "example.com" |
| lookup ns record | NS | Queries for Name Server (NS) records. | make ns = lookup ns record "example.com" |
| lookup srv record | SRV | Queries for Service (SRV) records. | make srv = lookup srv record "_sip._tcp" |
| reverse dns | PTR | Performs a reverse lookup from IP address to hostname. | make host = reverse dns "8.8.8.8" |
| flush dns | helper | Clears the local DNS cache. | flush dns cache |
| renew dhcp | helper | Renews the DHCP lease for a network interface. | renew dhcp "eth0" |
| release dhcp | helper | Releases the DHCP lease for an interface. | release dhcp "eth0" |
| open tls | rustls connect | Initiates a TLS client connection over an underlying stream. | make tls = open tls "api.com" on tcp_stream |
| accept tls | rustls accept | Accepts an incoming TLS connection as a server. | make tls = accept tls incoming_stream |
| do tls handshake | handshake | Performs the cryptographic handshake explicitly. | do tls handshake tls |
| load certificate | cert load | Loads an X.509 certificate. | make cert = load certificate "cert.pem" |
| parse certificate | x509 parse | Parses raw bytes into a certificate object. | make cert = parse certificate bytes |
| check certificate | verify | Verifies a certificate against trusted roots. | check certificate cert against roots |
| load key | private key load | Loads a private cryptographic key. | make key = load key "private.key" |
| make identity | identity bundle | Combines a certificate and private key into an identity. | make id = make identity cert and key |
| tls session | session info | Gets details about the active TLS session parameters. | make info = tls session tls |
| set alpn | ALPN | Configures Application-Layer Protocol Negotiation (e.g., HTTP/2). | set alpn tls to "h2" |
| set cipher | cipher | Restricts the allowed cryptographic cipher suites. | set cipher tls to "TLS13_AES_256_GCM_SHA384" |
| tls version | protocol version | Specifies the minimum/maximum allowed TLS protocol versions. | set tls version tls to 1.3 |
| check ocsp | helper | Verifies certificate revocation status via OCSP. | check ocsp cert |
| load ca | CA store | Loads a custom Certificate Authority root trust store. | make ca = load ca "custom_roots.pem" |
| make csr | CSR create | Generates a Certificate Signing Request. | make csr = make csr for "site.com" |
| issue certificate | issue cert | Signs a CSR to create a new certificate (acting as a CA). | make new_cert = issue certificate csr |
| revoke certificate | revoke | Adds a certificate to a revocation list (CRL). | revoke certificate cert |
| check chain | verify chain | Validates the entire certificate trust chain up to a root CA. | check chain cert to ca_store |
| open ssh | ssh2/openssh | Initiates an SSH connection. | make ssh = open ssh "[email protected]" |
| run ssh | exec | Executes a command remotely over the SSH connection. | make out = run ssh ssh "ls -la" |
| open ssh shell | shell session | Opens an interactive shell session over SSH. | make shell = open ssh shell ssh |
| make ssh tunnel | tunnel | Forwards a local port to a remote destination via SSH. | make ssh tunnel ssh from 8080 to 80 |
| forward ssh | forward | Acts as a jump host to forward the SSH connection. | forward ssh ssh to "internal_host" |
| send with ssh | copy_to | Copies a local file to the remote host (SCP protocol). | send with ssh ssh "app.bin" to "/usr/bin/" |
| get with ssh | copy_from | Copies a remote file to the local host (SCP protocol). | get with ssh ssh "/var/log/syslog" to "./" |
| list sftp | readdir | Lists files in a remote directory via SFTP. | make files = list sftp sftp "/var/www" |
| get sftp | get | Downloads a file via SFTP. | get sftp sftp "remote_file.txt" |
| put sftp | put | Uploads a file via SFTP. | put sftp sftp "local_file.txt" |
| make sftp folder | mkdir | Creates a remote directory via SFTP. | make sftp folder sftp "/new_dir" |
| remove sftp | remove | Deletes a remote file or directory via SFTP. | remove sftp sftp "old_file.txt" |
| open ftp | connect | Connects to an FTP server. | make ftp = open ftp "ftp.example.com" |
| login ftp | login | Authenticates with the FTP server. | login ftp ftp as "user" "password" |
| list ftp | list | Lists directory contents on the FTP server. | make files = list ftp ftp |
| get ftp | retrieve | Downloads a file via FTP. | get ftp ftp "backup.zip" |
| put ftp | store | Uploads a file via FTP. | put ftp ftp "backup.zip" |
| make ftp folder | mkdir | Creates a directory on the FTP server. | make ftp folder ftp "archives" |
| rename ftp | rename | Renames a file on the FTP server. | rename ftp ftp "old.txt" to "new.txt" |
| close ftp | quit | Closes the FTP connection cleanly. | close ftp ftp |
| EMAIL AND MESSAGING | |||
| send mail | lettre | Constructs and sends an email message. | send mail to "[email protected]" with subject "Hi" |
| get mail | IMAP/POP3 helper | Retrieves emails from an inbox via a mail protocol. | make emails = get mail inbox |
| open smtp | smtp connect | Connects to an SMTP server for outbound email routing. | make smtp = open smtp "smtp.mail.com" |
| open imap | imap connect | Connects to an IMAP server for syncing remote mailboxes. | make imap = open imap "imap.mail.com" |
| open pop3 | pop3 connect | Connects to a POP3 server for downloading mail. | make pop = open pop3 "pop.mail.com" |
| attach mail | add attachment | Adds a file or binary payload to an email draft. | attach mail draft "report.pdf" |
| reply mail | reply helper | Drafts a reply linking to the original message's Message-ID. | make rep = reply mail original_msg |
| forward mail | forward helper | Drafts a forwarded copy of an existing message. | make fwd = forward mail original_msg |
| search mail | mail search | Searches a mailbox (e.g., via IMAP SEARCH commands). | make hits = search mail "URGENT" |
| delete mail | delete | Marks an email for deletion on the server. | delete mail msg |
| mark mail read | mark seen | Adds the `\Seen` flag to an email. | mark mail read msg |
| send text message | SMS provider | Sends an SMS text message using a configured API provider. | send text message to "555-1234" with "Alert" |
| get text message | provider API | Fetches received SMS texts from a provider. | make texts = get text message |
| open xmpp | xmpp client | Connects to an XMPP instant messaging server. | make chat = open xmpp "xmpp.server.com" |
| send xmpp | xmpp send | Sends a chat stanza over the XMPP connection. | send xmpp chat to "bob" with "Hello" |
| open mqtt | mqtt client | Connects to an IoT MQTT message broker. | make mqtt = open mqtt "broker.hivemq.com" |
| send mqtt | publish | Publishes a payload to an MQTT topic. | send mqtt mqtt topic "sensors/temp" with "22.5" |
| watch mqtt | subscribe | Subscribes to an MQTT topic to receive messages. | watch mqtt mqtt topic "sensors/#" |
| stop mqtt watch | unsubscribe | Unsubscribes from an MQTT topic. | stop mqtt watch mqtt topic "sensors/#" |
| send kafka | produce | Produces a message to an Apache Kafka event stream. | send kafka topic "logs" with "error_01" |
| get kafka | consume | Consumes events from an Apache Kafka topic. | make event = get kafka topic "logs" |
| send queue message | mq send | Pushes a task or message to a message broker (e.g., RabbitMQ). | send queue message queue "tasks" with job_data |
| get queue message | mq recv | Pulls the next available message from a queue. | make job = get queue message "tasks" |
| accept queue message | ack | Acknowledges successful processing so the broker removes it. | accept queue message job |
| reject queue message | nack | Rejects a message, returning it to the queue or dead-lettering it. | reject queue message job |
| BROWSER, HTML, DOM | |||
| open browser | browser automation | Launches a managed browser instance (headed or headless). | make b = open browser |
| close browser | close | Terminates the managed browser instance. | close browser b |
| go browser | navigate | Navigates the browser to a specified URL. | go browser b "https://example.com" |
| back browser | back | Navigates to the previous page in the session history. | back browser b |
| forward browser | forward | Navigates to the next page in the session history. | forward browser b |
| reload browser | reload | Refreshes the current browser page. | reload browser b |
| run browser code | eval js | Executes arbitrary JavaScript within the active page context. | run browser code b "alert('hi')" |
| take browser shot | screenshot | Captures a screenshot of the viewport or entire page. | take browser shot b to "shot.png" |
| get browser cookies | cookies | Extracts the cookies currently set in the browser session. | make c = get browser cookies b |
| get local storage | localStorage | Reads the browser's persistent LocalStorage for the origin. | make ls = get local storage b |
| get session storage | sessionStorage | Reads the browser's temporary SessionStorage for the origin. | make ss = get session storage b |
| get browser history | history | Retrieves the history stack of the current tab. | make hist = get browser history b |
| print browser | print page | Generates a PDF or print-ready document from the page. | print browser b to "page.pdf" |
| open webview | webview | Creates an OS-native webview window for local UI rendering. | make wv = open webview "app.html" |
| bind webview | bridge binding | Exposes a Rust backend function to the webview's JavaScript. | bind webview wv "save" to save_fn |
| run webview code | eval | Evaluates JavaScript within the webview. | run webview code wv "updateUI()" |
| close webview | close | Destroys the webview window. | close webview wv |
| read html | parse | Parses a raw HTML string into an operable Document Object Model. | make doc = read html html_string |
| write html | render | Serializes a DOM structure back into an HTML string. | make str = write html doc |
| escape html | escape | Encodes special characters to prevent cross-site scripting (XSS). | make safe = escape html "<b>" |
| unescape html | unescape | Decodes HTML entities back to characters. | make raw = unescape html "&" |
| read css | parse | Parses a CSS stylesheet string into an object model. | make css = read css stylesheet_str |
| write css | stringify | Serializes a CSS object model back to a text string. | make str = write css css_obj |
| find dom | query selector | Locates the first node matching a CSS selector. | make btn = find dom doc "#submit" |
| find all dom | query_all | Locates all nodes matching a CSS selector. | make links = find all dom doc "a.nav" |
| make dom | create node | Instantiates a new standalone HTML element. | make div = make dom "div" |
| add dom | append | Appends a child element to a parent node. | add dom div to doc.body |
| remove dom | remove | Removes a node from its parent in the DOM. | remove dom ad_banner |
| dom attribute | attr | Reads or modifies an HTML attribute of a node. | dom attribute div "id" to "main" |
| dom style | style | Reads or modifies an inline CSS property of a node. | dom style div "color" to "blue" |
| dom text | text content | Sets the safe text content of an element (no HTML parsing). | dom text div to "Hello World" |
| dom html | inner html | Sets the inner HTML of an element (parses string as markup). | dom html div to "<b>Hello</b>" |
| listen dom | add handler | Attaches an event listener to a specific DOM node. | listen dom btn "click" {
print "Clicked!"
} |
| stop dom listen | remove handler | Removes a previously attached event listener. | stop dom listen btn "click" |
| fire dom | dispatch | Dispatches a synthetic event on a node. | fire dom btn "click" |
| SERVERS | |||
| start server | server run | Starts the HTTP server listening on a port. [Image of web server architecture diagram] | start server app on "0.0.0.0:80" |
| stop server | graceful shutdown | Signals the server to stop accepting connections and shut down cleanly. | stop server app |
| add route | route registration | Registers a new endpoint route and handler. | add route app "/api" to api_handler |
| get route | GET route | Registers a route specifically for GET requests. | get route app "/users" to get_users |
| post route | POST route | Registers a route specifically for POST requests. | post route app "/users" to add_user |
| put route | PUT route | Registers a route specifically for PUT requests. | put route app "/users/1" to update_user |
| patch route | PATCH route | Registers a route specifically for PATCH requests. | patch route app "/users/1" to patch_user |
| delete route | DELETE route | Registers a route specifically for DELETE requests. | delete route app "/users/1" to del_user |
| add middleware | middleware | Injects a middleware layer for processing requests/responses globally. | add middleware app logging_mw |
| serve files | static files | Registers a directory to serve static file assets. | serve files app "/public" from "./dist" |
| serve template | template engine | Responds to a request by rendering an HTML template. | serve template res "index.html" with context |
| serve websocket | ws route | Upgrades an incoming HTTP request into a WebSocket connection. | serve websocket app "/ws" to ws_handler |
| serve event stream | sse route | Establishes a Server-Sent Events connection for the client. | serve event stream app "/events" to sse_stream |
| server cookie | cookie handling | Sets or modifies cookies on the outgoing server response. | server cookie res "auth=true" |
| server session | session middleware | Reads or writes to the server-side user session store. | server session req set "user_id" to 1 |
| server upload | multipart upload | Parses and saves incoming multipart file uploads from the client. | make file = server upload req "avatar" |
| server download | file response | Sends a local file to the client as a downloadable attachment. | server download res "report.pdf" |
| allow cors | CORS middleware | Configures Cross-Origin Resource Sharing headers for the server. | allow cors app from "https://web.com" |
| proxy server | reverse proxy helper | Forwards the incoming request to another backend server. | proxy server req to "http://internal" |
| server tls | rustls | Configures the server to listen over HTTPS/TLS. | server tls app with cert and key |
| redirect server | redirect response | Sends an HTTP redirect response to the client. | redirect server res to "/login" |
| TEMPLATES AND DOCS | |||
| load template | template load | Loads a template file into the templating engine. | make tpl = load template "email.html" |
| render template | render | Renders a loaded template using a provided context/data. | make html = render template tpl
with data |
| template part | partial | Registers a reusable sub-template (partial) for inclusion. | template part engine "header.html" |
| template layout | layout | Sets a base layout template that wraps other templates. | template layout engine "base.html" |
| read markdown | parse | Parses a Markdown string into an abstract syntax tree. | make ast = read markdown "# Title" |
| write markdown | render | Renders a Markdown AST back into text. | make txt = write markdown ast |
| markdown to html | to_html | Converts a Markdown string directly into HTML markup. | make html = markdown to html "**bold**" |
| read rst | parse helper | Parses reStructuredText markup. | make rst = read rst doc_text |
| write rst | render helper | Renders an object into reStructuredText format. | make txt = write rst rst_obj |
| GUI AND WINDOW | |||
| open app | eframe/iced/tauri | Bootstraps and launches the main graphical application framework. | open app MyApp |
| main app | root UI | Defines the root container/widget of the application UI. | main app { ... } |
| show label | label | Renders static text on the screen. | show label "Welcome to the App" |
| show button | button | Renders a clickable button. | if show button "Submit" { ... } |
| show input | text input | Renders a single-line text input field. | show input mut_username |
| show text area | multiline text | Renders a multi-line text input box. | show text area mut_description |
| show checkbox | checkbox | Renders a togglable true/false checkbox. | show checkbox "Agree" mut_agreed |
| show radio | radio | Renders a mutually exclusive radio button option. | show radio "Option A" in mut_choice |
| show select | combo/select | Renders a dropdown combo box for selecting from a list. | show select mut_val from ["A", "B"] |
| show list | list | Renders a vertical, scrollable list of items. | show list items with |item| { ... } |
| show table | table | Renders a data table with columns and rows. | show table rows with headers |
| show grid | grid | Renders a 2D layout grid for precise widget placement. | show grid 2 columns { ... } |
| show row | row layout | Arranges child widgets horizontally from left to right. | show row { show button "1"; ... } |
| show column | column layout | Arranges child widgets vertically from top to bottom. | show column { show label "1"; ... } |
| show stack | stack layout | Layers widgets on top of each other (Z-index). | show stack { bg_image(); label(); } |
| show tabs | tabs | Renders a tabbed interface for switching between views. | show tabs ["Home", "Settings"] |
| show menu | menu | Renders a standard application dropdown menu bar. | show menu "File" { ... } |
| show toolbar | toolbar | Renders an icon/action toolbar, typically near the top. | show toolbar { add_icon(); save_icon(); } |
| show status bar | status bar | Renders an informational bar at the bottom of the window. | show status bar "Ready" |
| show sidebar | sidebar | Renders a collapsible or fixed panel on the side of the window. | show sidebar { nav_links() } |
| show dialog | dialog | Spawns an OS-level file or message dialog window. | make path = show dialog open_file |
| show modal | modal | Displays a UI overlay that blocks interaction with the rest of the app. | show modal "Are you sure?" |
| show toast | toast | Displays a brief, non-blocking notification pop-up. | show toast "Saved successfully" |
| show tip | tooltip | Shows a hover tooltip when the cursor rests on a widget. | show tip "Click to save" on btn |
| show progress | progress | Renders a loading bar or spinner. | show progress 0.75 |
| show slider | slider | Renders an interactive value slider. | show slider mut_volume from 0 to 100 |
| show canvas | canvas | Provides a raw drawing surface for custom graphics. | show canvas { draw_circle(ctx) } |
| show webview | webview | Embeds a web browser view inside the native GUI. | show webview "https://example.com" |
| show tree | tree | Renders a collapsible tree view of hierarchical data. | show tree file_system_nodes |
| show split | splitter | Renders a resizable divider between two panels. | show split horizontal { left(); right(); } |
| show accordion | accordion | Renders a vertically stacked set of expandable panels. | show accordion "Details" { ... } |
| make window | create | Instantiates a new OS-level window. | make w = make window |
| show window | show | Makes a hidden window visible on the desktop. | show window w |
| hide window | hide | Hides a window without destroying it. | hide window w |
| close window | close | Destroys the window and its context. | close window w |
| resize window | resize | Changes the logical size of the window. | resize window w to 800 by 600 |
| move window | move | Changes the absolute desktop position of the window. | move window w to 100, 100 |
| set window title | title | Changes the text in the OS title bar. | set window title w "My App" |
| set window icon | icon | Sets the taskbar/window icon. | set window icon w "app.png" |
| fullscreen window | fullscreen | Toggles the window into borderless full-screen mode. | fullscreen window w true |
| maximize window | maximize | Maximizes the window to fill the available work area. | maximize window w |
| minimize window | minimize | Minimizes the window to the OS taskbar/dock. | minimize window w |
| focus window | focus | Requests OS focus to bring the window to the foreground. | focus window w |
| set window opacity | opacity | Changes the transparency level of the window surface. | set window opacity w to 0.8 |
| set window cursor | cursor | Changes the mouse cursor icon when hovering over the window. | set window cursor w to "pointer" |
| window clipboard | clipboard | Accesses the clipboard context linked to the window. | make text = window clipboard w read |
| window drag drop | dragdrop | Handles OS file drop events over the window. | window drag drop w { |files| ... } |
| take window shot | screenshot | Grabs a bitmap image of the rendered window surface. | take window shot w to "app.png" |
| sync window | vsync | Waits for the monitor's vertical blanking interval before drawing. | sync window w true |
| TERMINAL | |||
| clear terminal | clear | Clears the terminal screen and resets the cursor. | clear terminal |
| move cursor | cursor move | Moves the terminal cursor to a specific row and column. | move cursor to 10, 5 |
| set terminal color | color | Changes the foreground or background text color using ANSI escape codes. | set terminal color to "green" |
| set terminal style | style | Applies text styling like bold, italic, or underline. | set terminal style to "bold" |
| write terminal | Prints text to the standard output. | write terminal "Hello User" | |
| read key | read key | Reads a single unbuffered keystroke from the terminal. | make k = read key |
| read terminal line | read line | Reads a full line of text from standard input until enter is pressed. | make input = read terminal line |
| terminal size | size | Gets the current dimensions (columns and rows) of the terminal window. | make cols, rows = terminal size |
| use alt screen | alternate screen | Switches to the terminal's alternate screen buffer (useful for TUI apps). | use alt screen true |
| show terminal progress | progress | Renders a progress bar in the terminal. | show terminal progress 50% |
| show terminal menu | menu | Displays an interactive selection menu using arrow keys. | make opt = show terminal menu
["Start", "Quit"] |
| show terminal table | table | Prints data formatted as a grid/table in the terminal. | show terminal table data_rows |
| show terminal panel | panel | Draws a bordered box/panel around content in the terminal. | show terminal panel "Info" { ... } |
| show cursor | cursor show | Makes the terminal cursor visible. | show cursor |
| hide cursor | cursor hide | Hides the terminal cursor. | hide cursor |
| ring bell | bell | Triggers the terminal's audible or visual bell. | ring bell |
| INPUT AND EVENTS | |||
| key down | key down | Triggered when a keyboard key is pressed down. | listen event "key down" { |k| ... } |
| key up | key up | Triggered when a keyboard key is released. | listen event "key up" { |k| ... } |
| key press | key press | Triggered when a full key press (down and up) occurs. | listen event "key press" { |k| ... } |
| mouse position | mouse pos | Gets the current X and Y coordinates of the mouse cursor. | make x, y = mouse position |
| mouse down | mouse down | Triggered when a mouse button is pressed. | listen event "mouse down" { |b| ... } |
| mouse up | mouse up | Triggered when a mouse button is released. | listen event "mouse up" { |b| ... } |
| mouse click | mouse click | Triggered when a mouse button is fully clicked. | listen event "mouse click" { |b| ... } |
| mouse scroll | mouse scroll | Triggered when the mouse wheel is scrolled. | listen event "mouse scroll" { |d| ... } |
| touch event | touch | Triggered by a touch screen interaction (start, move, end). | listen event "touch" { |e| ... } |
| gesture event | gesture | Triggered by a complex multi-touch gesture (pinch, swipe). | listen event "gesture" { |g| ... } |
| gamepad input | gamepad | Reads state from connected gamepads or controllers. | make pad = gamepad input 0 |
| joystick input | joystick | Reads analog joystick axis values. | make axis = joystick input "x" |
| keyboard shortcut | shortcut | Registers a global or application-level key combination. | keyboard shortcut "ctrl+s" { save() } |
| drag event | drag | Triggered when an element or file is being dragged. | listen event "drag" { |e| ... } |
| drop event | drop | Triggered when a dragged element or file is dropped. | listen event "drop" { |files| ... } |
| focus event | focus | Triggered when an element or window gains input focus. | listen event "focus" { ... } |
| blur event | blur | Triggered when an element or window loses input focus. | listen event "blur" { ... } |
| listen event | on | Subscribes a handler function to a specific event type. | listen event "custom" to handler |
| stop listening | off | Removes a previously subscribed event handler. | stop listening "custom" handler |
| send event | emit | Dispatches a custom event to the event loop. | send event "update" with data |
| listen signal | signal on | Listens for OS-level signals or framework-specific signals. | listen signal "quit" { ... } |
| stop signal | signal off | Stops listening for a specific signal. | stop signal "quit" |
| send signal | signal emit | Emits a signal to active listeners. | send signal "ready" |
| CLIPBOARD AND DRAG DROP | |||
| copy clipboard | copy | Copies data or text into the system clipboard. | copy clipboard "Hello World" |
| paste clipboard | paste | Retrieves data or text from the system clipboard. | make txt = paste clipboard |
| clear clipboard | clear | Empties the current contents of the system clipboard. | clear clipboard |
| start drag | drag start | Initiates a drag-and-drop operation with a payload. | start drag item_data |
| move drag | drag move | Updates UI state as a dragged item moves over drop zones. | listen event "drag move" { ... } |
| end drag | drag end | Fired when a drag operation is cancelled or completed. | listen event "drag end" { ... } |
| accept drop | accept | Signals that a hovered drop zone accepts the dragged payload. | accept drop if type == "image" |
| drop files | files | Retrieves a list of file paths dropped onto a window/widget. | make paths = drop files |
| drop text | text | Retrieves text content dropped onto a window/widget. | make str = drop text |
| DRAWING, SVG, CHARTS, ANIMATION, 3D | |||
| make canvas | graphics canvas | Creates a new 2D drawing context/surface. | make ctx = make canvas 800 by 600 |
| clear drawing | clear | Fills the entire canvas with a transparent or solid color. | clear drawing ctx with "white" |
| set draw color | color | Sets the active color for subsequent drawing operations. | set draw color ctx to "red" |
| set draw stroke | stroke | Sets the active line thickness and style. | set draw stroke ctx to 2px |
| set draw fill | fill | Determines if shapes should be filled or just outlined. | set draw fill ctx to true |
| draw line | line | Draws a straight line between two points. | draw line ctx from 0,0 to 10,10 |
| draw box | rect | Draws a rectangle at a specific position with a width/height. | draw box ctx at 10,10 size 50,50 |
| draw round box | round rect | Draws a rectangle with rounded corners. | draw round box ctx at 10,10 rad 5 |
| draw circle | circle | Draws a perfect circle given a center point and radius. | draw circle ctx at 50,50 rad 20 |
| draw ellipse | ellipse | Draws an oval given a center point and X/Y radii. | draw ellipse ctx at 50,50 rad 20,10 |
| draw arc | arc | Draws a segment of a circle's circumference. | draw arc ctx at 50,50 from 0 to Pi |
| draw polygon | polygon | Draws a closed shape connecting an array of points. | draw polygon ctx points [p1, p2, p3] |
| draw path | path | Executes a sequence of complex drawing commands (lines, curves). | draw path ctx my_custom_path |
| draw curve | bezier | Draws a quadratic or cubic Bezier curve. | draw curve ctx to p3 via p1, p2 |
| draw text | text | Renders a string of text onto the canvas at a specific point. | draw text ctx "Score: 0" at 10,20 |
| draw image | image | Renders a bitmap image onto the canvas. | draw image ctx sprite at 50,50 |
| transform drawing | transform | Applies a 2D transformation matrix to the canvas. | transform drawing ctx with matrix |
| move drawing | translate | Shifts the canvas origin (0,0) to a new point. | move drawing ctx by 100, 50 |
| turn drawing | rotate | Rotates the canvas context around its origin. | turn drawing ctx by 45 deg |
| scale drawing | scale | Multiplies the size of subsequent drawing operations. | scale drawing ctx by 2.0 |
| clip drawing | clip | Restricts drawing to occur only inside a defined path. | clip drawing ctx to my_path |
| mask drawing | mask | Uses an image's alpha channel to mask out drawn pixels. | mask drawing ctx with alpha_img |
| shadow drawing | shadow | Applies a drop-shadow effect to subsequent drawings. | shadow drawing ctx blur 5 color "black" |
| gradient drawing | gradient | Fills shapes using a linear or radial color gradient. | gradient drawing ctx from "red" to "blue" |
| pattern drawing | pattern | Fills shapes by repeating a smaller image as a tile. | pattern drawing ctx with brick_img |
| blend drawing | blend | Changes how overlapping colors are mixed (e.g., multiply, screen). | blend drawing ctx to "multiply" |
| set drawing opacity | opacity | Changes the global alpha transparency for the canvas. | set drawing opacity ctx to 0.5 |
| filter drawing | filter | Applies an image filter (like blur, sepia) to the canvas. | filter drawing ctx "blur(5px)" |
| load svg | svg parse | Parses a Scalable Vector Graphics file into a renderable object. | make icon = load svg "logo.svg" |
| save svg | save | Serializes an SVG object to a file. | save svg icon to "out.svg" |
| svg path | path | Creates or modifies an SVG ` | make p = svg path "M10 10 H 90 V 90" |
| svg box | rect | Creates an SVG ` | make r = svg box 10,10 size 50,50 |
| svg circle | circle | Creates an SVG ` | make c = svg circle at 50,50 rad 20 |
| svg ellipse | ellipse | Creates an SVG ` | make e = svg ellipse at 50,50 rx 20 ry 10 |
| svg line | line | Creates an SVG ` | make l = svg line from 0,0 to 10,10 |
| svg polyline | polyline | Creates an SVG ` | make p = svg polyline pts [p1, p2, p3] |
| svg polygon | polygon | Creates an SVG ` | make p = svg polygon pts [p1, p2, p3] |
| svg group | group | Creates an SVG ` | make g = svg group [rect, circle] |
| svg text | text | Creates an SVG ` | make t = svg text "Hello" at 10,20 |
| svg transform | transform | Applies a transform attribute to an SVG node. | svg transform g rotate 45 |
| svg style | style | Applies a CSS style string to an SVG node. | svg style g "fill: red;" |
| export svg | export | Renders an SVG object into a rasterized image (like PNG). | export svg icon to png "icon.png" |
| draw line chart | chart line | Generates a line graph from a dataset. [Image of line chart data visualization] | draw line chart data on canvas |
| draw bar chart | chart bar | Generates a bar graph from a dataset. | draw bar chart data on canvas |
| draw pie chart | chart pie | Generates a pie chart from a dataset. | draw pie chart data on canvas |
| draw scatter chart | scatter | Generates a scatter plot mapping X and Y points. | draw scatter chart pts on canvas |
| draw area chart | area | Generates a line chart where the area under the line is filled. | draw area chart data on canvas |
| draw histogram | histogram | Generates a bar chart showing frequency distribution. | draw histogram freq_data on canvas |
| draw heatmap | heatmap | Generates a grid where values are represented by color intensity. | draw heatmap matrix on canvas |
| set chart axis | axis | Configures the labels, scales, and ticks for a chart's X/Y axis. | set chart axis X title "Months" |
| set chart legend | legend | Configures the visibility and position of the chart legend. | set chart legend pos "bottom" |
| add chart series | series | Appends an additional dataset line/bar to an existing chart. | add chart series "Project B" data2 |
| render chart | render | Finalizes and draws the chart object to the canvas context. | render chart my_chart |
| export chart | export | Saves the rendered chart directly to an image file. | export chart my_chart "chart.png" |
| plot line | line plot | A low-level mathematical plotting function for lines. | plot line math_func on graph |
| plot points | point plot | A low-level mathematical plotting function for discrete points. | plot points coordinates on graph |
| make animation | animation object | Creates a controller object for an animation sequence. | make anim = make animation |
| play animation | play | Starts or resumes playing an animation. | play animation anim |
| pause animation | pause | Pauses an animation at its current frame. | pause animation anim |
| stop animation | stop | Stops an animation and usually returns it to frame 0. | stop animation anim |
| reset animation | reset | Forces an animation back to its starting state. | reset animation anim |
| seek animation | seek | Jumps the animation to a specific time or percentage. | seek animation anim to 50% |
| set animation speed | speed | Changes the playback rate multiplier (1.0 is normal). | set animation speed anim to 2.0 |
| loop animation | loop | Sets whether the animation restarts after finishing. | loop animation anim true |
| reverse animation | reverse | Plays the animation backwards. | reverse animation anim |
| delay animation | delay | Sets a wait time before the animation begins playing. | delay animation anim 1 second |
| add keyframe | keyframe | Defines an explicit property state at a specific time in the timeline. | add keyframe anim at 1s alpha 0 |
| sequence animation | sequence | Chains multiple animations to play one after another. | sequence animation [anim1, anim2] |
| parallel animation | parallel | Plays multiple animations simultaneously. | parallel animation [anim1, anim2] |
| tween animation | tween | Interpolates a numeric value from start to finish over time. | tween animation x from 0 to 100 in 1s |
| fade animation | fade | Animate the opacity of an element. | fade animation element to 0 in 1s |
| move animation | move | Animate the X/Y coordinates of an element. | move animation element to 50,50 in 1s |
| scale animation | scale | Animate the size multiplier of an element. | scale animation element to 2x in 1s |
| turn animation | rotate | Animate the rotation angle of an element. | turn animation element by 360 in 1s |
| color animation | color | Smoothly interpolate an element's color over time. | color animation bg to "blue" in 1s |
| ease animation | ease | Applies an easing function (e.g., ease-in-out) to a tween. | ease animation anim with "ease-out" |
| spring animation | spring | Applies a physics-based spring easing for bouncy motion. | spring animation x to 100 tension 50 |
| animation timeline | timeline | A master object that scrubs/controls multiple child animations. | make t = animation timeline |
| make scene | scene | Creates an empty 3D world graph for rendering. | make world = make scene |
| add to scene | add | Inserts a 3D object, light, or camera into the scene. | add to scene world my_model |
| remove from scene | remove | Removes an object from the 3D scene. | remove from scene world my_model |
| update scene | update | Advances physics, animations, and logic for all objects in the scene by one tick. | update scene world delta_time |
| draw scene | render | Renders the 3D scene to the screen using the active camera. | draw scene world |
| make camera | camera | Creates a viewport (perspective or orthographic) for viewing the scene. | make cam = make camera perspective |
| move camera | move | Sets the 3D coordinates (X, Y, Z) of the camera. | move camera cam to 0, 10, -50 |
| turn camera | rotate | Rotates the camera on its pitch, yaw, or roll axes. | turn camera cam yaw 45 |
| look camera at | look_at | Automatically calculates rotation so the camera stares at a specific 3D point. | look camera at origin |
| load mesh | load | Loads a 3D geometry file (like .obj or .glTF). | make mesh = load mesh "cube.obj" |
| make mesh | create | Programmatically generates 3D geometry via vertices and indices. | make mesh = make mesh [v1, v2, v3] |
| make material | create | Defines surface properties (color, roughness, metallic) for a mesh. | make mat = make material "gold" |
| set material | set | Assigns a material to a specific mesh or model. | set material mesh to mat |
| make light | create | Creates an illumination source (point, directional, or ambient). | make sun = make light directional |
| move light | move | Positions a light source in the 3D scene. | move light sun to 0, 100, 0 |
| load skybox | load | Loads a cubemap texture to serve as the background of the 3D world. | load skybox world "space.hdr" |
| load shader | load | Compiles a custom GLSL/WGSL GPU shader program. | make fx = load shader "water.glsl" |
| set shader | set | Assigns a custom shader to override a material's default rendering. | set shader mat to fx |
| load model | load | Loads a complex pre-assembled 3D asset containing meshes, materials, and animations. | make player = load model "hero.glb" |
| draw model | draw | Explicitly commands the GPU to render a single model instance. | draw model player |
| pick scene | picking | Casts a ray from the mouse cursor into the 3D world to click on objects. | make hit = pick scene world at mouse_x, mouse_y |
| GPU | |||
| get gpu device | device | Gets a logical handle to the GPU for resource creation. | make dev = get gpu device |
| get gpu adapter | adapter | Retrieves the physical GPU hardware adapter (e.g., querying for discrete vs integrated). | make gpu = get gpu adapter |
| make gpu buffer | buffer create | Allocates raw memory on the GPU (VRAM). | make buf = make gpu buffer size 1024 |
| write gpu buffer | buffer write | Uploads data from the CPU to a GPU buffer. | write gpu buffer buf with my_data |
| make gpu texture | texture create | Allocates image memory on the GPU for rendering or sampling. | make tex = make gpu texture 800x600 |
| write gpu texture | texture write | Uploads pixel data to a GPU texture. | write gpu texture tex with pixels |
| make gpu pipeline | pipeline create | Configures the GPU render or compute pipeline state. | make pipe = make gpu pipeline
using shader |
| build gpu shader | shader compile | Compiles shader code (WGSL/GLSL) into an executable GPU module. | make sh = build gpu shader "main.wgsl" |
| run gpu compute | compute dispatch | Executes a compute shader workload across a number of workgroups. | run gpu compute pipe groups 8, 8, 1 |
| begin gpu draw | render begin | Starts recording a rendering pass for a specific frame buffer. | make pass = begin gpu draw to frame |
| draw gpu | render draw | Issues a draw call for geometry (vertices/indices) on the GPU. | draw gpu pass vertices 0 to 3 |
| end gpu draw | render end | Finishes recording a rendering pass. | end gpu draw pass |
| present gpu | present | Swaps the back buffer to present the rendered frame to the display. | present gpu frame |
| set shader uniform | uniform | Passes global variables (like camera matrices) to the shader. | set shader uniform "time" to 1.5 |
| bind shader | bind | Binds resources (textures, buffers) to a pipeline slot. | bind shader tex to slot 0 |
| GAME AND PHYSICS | |||
| make sprite | create | Instantiates a 2D sprite object from a texture. | make player = make sprite "hero.png" |
| draw sprite | draw | Renders a sprite to the game screen. | draw sprite player at 100, 100 |
| move sprite | move | Translates a sprite's 2D coordinates. | move sprite player by 5, 0 |
| turn sprite | rotate | Rotates a sprite by a specified angle. | turn sprite player by 90 deg |
| scale sprite | scale | Resizes a sprite relative to its original dimensions. | scale sprite player to 2.0 |
| flip sprite | flip | Mirrors a sprite horizontally or vertically. | flip sprite player horizontal |
| play sprite | animate | Steps through a spritesheet animation sequence. | play sprite player "run" |
| sprite hit | collide | Checks 2D bounding box collision between two sprites. | if sprite hit player and enemy { ... } |
| make entity | create | Spawns an ECS (Entity Component System) entity. | make obj = make entity |
| drop entity | destroy | Removes an ECS entity and all its associated components. | drop entity obj |
| add to entity | add component | Attaches a data component to an entity. | add to entity obj component Health(100) |
| remove from entity | remove component | Detaches a component from an entity. | remove from entity obj component Poison |
| tag entity | tag | Adds an empty marker component for quick querying. | tag entity obj "Enemy" |
| set entity layer | layer | Assigns a rendering or physics layer mask to an entity. | set entity layer obj to "Foreground" |
| run game loop | loop | Starts the main ECS update/render loop. | run game loop app |
| game tick | tick | Manually advances the game engine state by one delta-time step. | game tick app |
| make physics world | world | Initializes a physics simulation space. | make phys = make physics world |
| make body | body | Creates a rigid body (dynamic, static, or kinematic). | make b = make body dynamic |
| make collider | collider | Attaches physical collision geometry to a body. | make col = make collider box 10, 10 |
| apply force | force | Applies a continuous force to a rigid body over time. | apply force to b 0, 9.8 |
| apply push | impulse | Applies an instantaneous impulse (like a jump or explosion). | apply push to b 0, -50 |
| set speed | velocity | Directly overrides the linear or angular velocity of a body. | set speed b to 10, 0 |
| set gravity | gravity | Modifies the global gravity vector of the physics world. | set gravity phys to 0, 9.81 |
| cast ray | raycast | Shoots a line through the physics world to detect hits. | make hit = cast ray phys
from origin to dir |
| test overlap | overlap | Checks if a specific shape overlaps with any colliders in the world. | if test overlap phys box at x,y { ... } |
| step physics | simulate | Advances the physics simulation by a given time delta. | step physics phys by 0.016 |
| pause physics | pause | Freezes the physics simulation while leaving rendering active. | pause physics phys |
| resume physics | resume | Unfreezes the physics simulation. | resume physics phys |
| make joint | joint | Constrains two bodies together (e.g., hinge, spring, fixed). | make j = make joint hinge b1 to b2 |
| load tilemap | load | Loads a 2D grid-based level map. | make map = load tilemap "level1.tmx" |
| save tilemap | save | Saves modifications back to a tilemap file. | save tilemap map to "level1.tmx" |
| draw tilemap | draw | Renders the visible chunk of the tilemap. | draw tilemap map on screen |
| get tile | get | Reads the tile ID or data at a specific grid coordinate. | make t = get tile map at 5, 5 |
| set tile | set | Modifies the tile ID at a specific grid coordinate. | set tile map at 5, 5 to "wall" |
| make board | create | Initializes a logical grid board (e.g., for chess or matching games). | make b = make board 8 by 8 |
| draw board | draw | Renders the logical board visually. | draw board b |
| board cell | cell | Accesses the state of a specific logical cell. | make piece = board cell b at 0, 0 |
| highlight board | highlight | Visually emphasizes a cell or valid movement path. | highlight board b at 0, 0 color "green" |
| reset board | reset | Clears the board back to its initial state. | reset board b |
| undo board | undo | Reverts the last logical board move via an internal history stack. | undo board b |
| redo board | redo | Reapplies a previously reverted board move. | redo board b |
| IMAGES, VIDEO, AUDIO | |||
| load image | image load | Reads and parses an image file from disk into memory. | make img = load image "photo.jpg" |
| save image | save | Encodes and writes an image object to disk. | save image img to "out.png" |
| read image | decode | Decodes an image from a raw byte stream in memory. | make img = read image bytes |
| write image | encode | Encodes an image object back into a raw byte format. | make bytes = write image img as "jpeg" |
| resize image | resize | Changes the dimensions of an image using a scaling filter. | make small = resize image img
to 100 by 100 |
| crop image | crop | Extracts a rectangular region from an image. | make face = crop image img
at 50,50 size 100,100 |
| turn image | rotate | Rotates the image by a specific number of degrees. | make turned = turn image img by 90 |
| flip image | flip | Mirrors the image horizontally or vertically. | make mirrored = flip image img horiz |
| blur image | blur | Applies a Gaussian blur to the image. | make soft = blur image img rad 5.0 |
| sharpen image | sharpen | Applies a sharpening convolution filter to the image. | make crisp = sharpen image img |
| denoise image | helper | Reduces visual noise and artifacting in the image. | make clean = denoise image img |
| gray image | grayscale | Converts a color image into grayscale. | make bw = gray image img |
| invert image | invert | Inverts all colors in the image. | invert image mut_img |
| threshold image | threshold | Converts pixels to pure black or white based on a cutoff. | threshold image mut_img at 128 |
| set image alpha | alpha ops | Modifies the transparency channel of the image. | set image alpha mut_img to 0.5 |
| mask image | mask | Uses another image's alpha channel to mask this image. | mask image mut_img with mask_layer |
| overlay image | overlay | Draws one image on top of another. | overlay image mut_bg with stamp at 10,10 |
| mix image | composite | Blends two images together using a specific blend mode. | mix image img1 and img2 mode "multiply" |
| draw text on image | draw_text | Renders text directly into the image's pixel data. | draw text on image mut_img "Watermark" |
| draw shape on image | draw_shape | Draws geometric shapes directly into the image. | draw shape on image mut_img box at 0,0 |
| image metadata | metadata | Retrieves the dimensions, color space, and format. | make info = image metadata img |
| image exif | exif | Extracts EXIF camera and GPS data from the image file. | make gps = image exif img "GPSInfo" |
| image histogram | histogram | Computes the color distribution of the image. | make hist = image histogram img |
| make image thumb | thumbnail | Generates a fast, low-resolution thumbnail. | make thumb = make image thumb img
size 128 |
| take image shot | screenshot | Captures the current contents of the desktop or a window. | make img = take image shot main_window |
| read text from image | OCR | Performs Optical Character Recognition to extract text. | make txt = read text from image img |
| read qr from image | QR decode | Detects and decodes a QR code found within an image. | make url = read qr from image img |
| write qr to image | QR encode | Generates a new image containing a QR code payload. | make qr = write qr to image "api.com" |
| load video | ffmpeg open | Opens a video file for frame-by-frame processing. | make vid = load video "clip.mp4" |
| save video | write output | Finalizes and multiplexes a video stream to a file. | save video vid to "final.mkv" |
| play video | playback | Starts playback of a video stream to the UI. | play video player |
| pause video | pause | Pauses video playback. | pause video player |
| stop video | stop | Stops playback and resets to the beginning. | stop video player |
| seek video | seek | Jumps the video stream to a specific timestamp. | seek video vid to 1m30s |
| trim video | trim | Cuts the video down to a specific start and end time. | trim video vid from 10s to 20s |
| cut video | cut | Removes a segment from the middle of the video. | cut video vid from 5s to 10s |
| merge video | merge | Blends two video streams (e.g., side-by-side or picture-in-picture). | merge video v1 and v2 mode "pip" |
| join video | concat | Stitches two videos together end-to-end. | make final = join video v1 and v2 |
| overlay video | overlay | Places an image or text overlay on top of the video stream. | overlay video vid with watermark |
| subtitle video | subtitle | Adds a soft-subtitle track (like .srt) to the video container. | subtitle video vid with "eng.srt" |
| caption video | burn captions | Hard-codes/burns text captions directly into the video frames. | caption video vid with "eng.srt" |
| take audio from video | extract audio | Demultiplexes and returns just the audio track. | make mp3 = take audio from video vid |
| take frame from video | extract frame | Decodes a single specific frame from the video into an image. | make img = take frame from video
vid at 5s |
| capture camera video | capture | Starts streaming frames from a hardware capture device. | make stream = capture camera video |
| capture screen video | capture | Starts recording the user's desktop into a video stream. | make rec = capture screen video |
| stream video | stream | Pushes video data to a network destination (e.g., RTMP). | stream video vid to "rtmp://live" |
| encode video | encode | Compresses raw video frames using a codec (e.g., H.264). | encode video vid as "h264" |
| decode video | decode | Decompresses a video stream into raw frames. | decode video stream into frames |
| convert video | transcode | Transcodes a video from one format/codec to another. | convert video vid to "webm" |
| filter video | filter graph | Applies a complex processing graph (like FFmpeg filters) to the video. | filter video vid with "vflip,negate" |
| video metadata | metadata | Retrieves duration, resolution, codecs, and framerate. | make info = video metadata vid |
| make video thumb | thumbnail | Generates a still image thumbnail representing the video. | make thumb = make video thumb vid |
| export video | export | Renders the final processed video pipeline to disk. | export video vid to "render.mp4" |
| video fps | fps | Gets or sets the frames-per-second of the video stream. | set video fps vid to 60 |
| video size | resolution | Gets the pixel width and height of the video. | make w, h = video size vid |
| list cameras | list | Returns available hardware webcams and capture cards. | make cams = list cameras |
| open camera | open | Initializes a connection to a specific camera device. | make cam = open camera 0 |
| get camera frame | frame | Pulls the latest individual image frame from the camera buffer. | make img = get camera frame cam |
| record camera | record | Begins continuously saving the camera feed to a video file. | record camera cam to "vlog.mp4" |
| snap camera | snapshot | Takes a high-res still photo from the camera. | make photo = snap camera cam |
| close camera | close | Releases the hardware lock on the camera device. | close camera cam |
| open webcam | open | Opens the default system webcam. | make web = open webcam |
| get webcam frame | frame | Pulls the latest frame from the default webcam. | make img = get webcam frame web |
| record webcam | record | Records the default webcam to a file. | record webcam web to "out.mp4" |
| close webcam | close | Releases the default webcam. | close webcam web |
| list screens | list | Returns information about all connected physical monitors. | make displays = list screens |
| main screen | primary | Gets the primary system monitor. | make main = main screen |
| take screen shot | capture | Captures a full image of a specific screen. | take screen shot main to "bg.png" |
| take screen area | capture area | Captures a specific cropped region of the screen. | take screen area 0,0 size 100,100 |
| screen width | width | Gets the pixel width of a screen. | make w = screen width main |
| screen height | height | Gets the pixel height of a screen. | make h = screen height main |
| screen scale | scale | Gets the DPI scaling factor of a screen (e.g., 1.5 for Retina). | make dpi = screen scale main |
| screen rate | refresh rate | Gets the hardware refresh rate (Hz) of the monitor. | make hz = screen rate main |
| fullscreen screen | fullscreen | Requests the OS to make a window take up the entire screen. | fullscreen screen main true |
| screen brightness | brightness | Adjusts the hardware backlight brightness of a monitor. | set screen brightness main to 80% |
| screen orientation | orientation | Gets or sets the rotation of the screen (landscape/portrait). | set screen orientation main "portrait" |
| load audio | load | Reads and decodes an audio file into memory. | make track = load audio "song.mp3" |
| play audio | play | Starts playback of an audio track to the default output device. | play audio track |
| pause audio | pause | Pauses audio playback. | pause audio track |
| stop audio | stop | Stops playback and resets to the beginning. | stop audio track |
| seek audio | seek | Jumps playback to a specific timestamp in the audio track. | seek audio track to 1m30s |
| loop audio | loop | Toggles whether the track should repeat indefinitely. | loop audio track true |
| set audio volume | volume | Changes the playback volume multiplier. | set audio volume track to 0.5 |
| set audio pan | pan | Shifts the audio balance between left and right channels. | set audio pan track to -1.0 |
| set audio pitch | pitch | Changes the playback speed/pitch without altering duration (if time-stretched). | set audio pitch track to 1.2 |
| fade audio | fade | Applies a volume fade-in or fade-out effect. | fade audio track in over 2s |
| mix audio | mix | Combines multiple audio tracks into a single output stream. | make master = mix audio [t1, t2] |
| record audio | record | Captures audio from an input device to a file. | record audio mic to "voice.wav" |
| capture audio | capture input | Starts streaming live audio chunks from an input device. | make stream = capture audio mic |
| encode audio | encode | Compresses raw PCM audio into a format like MP3 or Vorbis. | encode audio raw_pcm as "mp3" |
| decode audio | decode | Decompresses encoded audio into raw PCM frames. | make pcm = decode audio mp3_bytes |
| audio metadata | metadata | Retrieves the sample rate, channels, and duration. | make info = audio metadata track |
| audio spectrum | spectrum | Performs an FFT to analyze the frequency spectrum of the audio. | make freqs = audio spectrum track |
| list audio devices | device list | Returns all available hardware inputs and outputs. | make devices = list audio devices |
| set audio device | choose device | Routes audio playback or capture to a specific hardware device. | set audio device track to "Speakers" |
| audio reverb | effect reverb | Applies an environmental reverberation effect. | apply audio reverb track preset "hall" |
| audio equalizer | equalizer | Adjusts specific frequency bands in the audio track. | apply audio equalizer track boost bass |
| SPEECH | |||
| speak text | TTS | Synthesizes text into spoken audio. | speak text "Hello, world" |
| stop speaking | stop | Halts the current speech synthesis playback. | stop speaking |
| speech voice | voice | Sets the synthetic voice profile (e.g., male, female, accent). | set speech voice to "en-US-Jenny" |
| speech rate | rate | Adjusts the speed of the spoken text. | set speech rate to 1.5 |
| speech pitch | pitch | Adjusts the tonal pitch of the synthetic voice. | set speech pitch to 0.8 |
| speech language | lang | Sets the target language for pronunciation and synthesis. | set speech language to "es-ES" |
| hear speech | recognition | Listens to microphone input and transcribes it to text. | make text = hear speech |
| PDF, DOCS, SHEETS | |||
| open pdf | pdf open | Opens a PDF document for reading or editing. | make doc = open pdf "file.pdf" |
| save pdf | save | Writes the PDF document to disk. | save pdf doc to "out.pdf" |
| pdf page | page access | Accesses a specific page within the PDF. | make page = pdf page doc at 1 |
| pdf text | add/read text | Extracts text from or adds text to a PDF page. | make txt = pdf text page |
| pdf image | add/extract image | Extracts images from or embeds images into a PDF page. | make img = pdf image page at 0 |
| pdf table | draw table | Renders a tabular data structure onto a PDF page. | pdf table page with data_rows |
| merge pdf | merge | Combines multiple PDF documents into one. | make all = merge pdf doc1 and doc2 |
| split pdf | split | Extracts specific pages into a new PDF document. | make doc2 = split pdf doc from 1 to 5 |
| take text from pdf | extract_text | Extracts all readable text from the entire PDF. | make txt = take text from pdf doc |
| take image from pdf | extract_image | Extracts all embedded images from the PDF. | make imgs = take image from pdf doc |
| pdf metadata | metadata | Reads document properties like author, title, and creation date. | make info = pdf metadata doc |
| sign pdf | sign | Applies a cryptographic digital signature to the PDF. | sign pdf doc with my_cert |
| lock pdf | encrypt | Encrypts the PDF and restricts permissions (e.g., printing, editing). | lock pdf doc with "password" |
| open print | printer context | Initializes a system print spooler context. | make job = open print |
| print setup | page setup | Configures paper size, orientation, and margins. | print setup job size "A4" |
| print preview | preview | Generates a preview rendering of the print job. | show print preview job |
| print job | print job | Enqueues a document into the print spooler. | print job doc to "Printer1" |
| send print | send | Commits and sends the job to the physical printer. | send print job |
| open document | doc open | Opens a word processing document (e.g., DOCX). | make doc = open document "file.docx" |
| save document | doc save | Saves changes to a word processing document. | save document doc |
| document to pdf | export pdf | Converts a word processing document into a PDF. | document to pdf doc as "out.pdf" |
| document to html | to html | Converts a word processing document into HTML markup. | make html = document to html doc |
| open sheet | workbook open | Opens a spreadsheet workbook (e.g., XLSX, CSV). | make book = open sheet "data.xlsx" |
| save sheet | workbook save | Saves changes to a spreadsheet workbook. | save sheet book |
| read cell | read cell | Reads the value or formula from a specific spreadsheet cell. | make val = read cell book at "A1" |
| write cell | write cell | Writes a value or formula into a spreadsheet cell. | write cell book at "B2" with 42 |
| read range | read range | Reads a 2D array of values from a range of cells. | make data = read range book "A1:C10" |
| write range | write range | Writes a 2D array of values into a range of cells. | write range book "A1:C10" with data |
| add sheet | add sheet | Adds a new worksheet tab to the workbook. | add sheet book named "Summary" |
| remove sheet | remove sheet | Deletes a worksheet tab from the workbook. | remove sheet book named "Sheet2" |
| make table | create | Defines a structural table within a document or sheet. | make t = make table 5 by 5 |
| add row | row add | Inserts a new row into a table. | add row t with ["a", "b"] |
| remove row | row remove | Deletes a row from a table. | remove row t at 2 |
| add column | column add | Inserts a new column into a table. | add column t with "Total" |
| remove column | column remove | Deletes a column from a table. | remove column t at 1 |
| sort table | sort | Sorts the table rows based on a specific column. | sort table t by "Total" |
| filter table | filter | Hides table rows that do not match a filter condition. | filter table t where "Total" > 10 |
| SCAN, OCR, BARCODE | |||
| open scanner | scan open | Connects to an attached hardware image scanner (e.g., TWAIN/SANE). | make s = open scanner |
| scan page | scan page | Triggers the hardware scanner to capture a document page. | make img = scan page s |
| save scan | save scan | Saves the scanned image to disk. | save scan img to "doc.tiff" |
| read ocr | OCR text | Runs Optical Character Recognition to extract text from an image. | make txt = read ocr img |
| find text in scan | OCR detect | Locates the bounding boxes of specific text within a scanned document. | make boxes = find text in scan img
"Total" |
| scan layout | layout analysis | Analyzes a document image to detect paragraphs, columns, and tables. | make layout = scan layout img |
| read barcode | barcode decode | Detects and decodes a 1D barcode (e.g., UPC, EAN) from an image. | make code = read barcode img |
| write barcode | barcode encode | Generates an image containing a 1D barcode. | make img = write barcode "123456789" |
| read qr | qr decode | Detects and decodes a 2D QR code from an image. | make url = read qr img |
| write qr | qr encode | Generates an image containing a 2D QR code. | make img = write qr "https://zelc.org" |
| NOTIFY, LOCALE, ACCESSIBILITY, LOCATION, POWER | |||
| show notification | notify | Triggers a native OS desktop or mobile notification. | show notification "Download Complete" |
| update notification | update | Modifies an existing native notification without chiming again. | update notification notif_id with "Still downloading..." |
| close notification | close | Programmatically dismisses an active notification. | close notification notif_id |
| notification sound | sound | Attaches an alert sound to a notification payload. | notification sound notif "chime.wav" |
| notification badge | badge | Updates the unread count badge on the app's dock/home screen icon. | notification badge 5 |
| show alert | alert | Displays a blocking modal alert box. | show alert "Operation Failed!" |
| show toast | toast | Displays a brief, non-blocking UI message. | show toast "Saved" |
| get locale | locale get | Gets the system's current language and region code (e.g., "en-US"). | make loc = get locale |
| set locale | locale set | Overrides the application's locale for localization. | set locale to "fr-FR" |
| format local date | format_date | Formats a date string according to local regional customs. | make s = format local date now |
| format local number | format_number | Formats a number with local decimal and thousands separators. | make s = format local number 1000.5 |
| format local money | currency | Formats a number as currency according to the active locale. | make s = format local money 19.99 |
| translate text | translate | Translates a translation key into the active locale string. | make s = translate text "btn_submit" |
| plural text | pluralize | Selects the correct pluralized string based on a numeric value. | make s = plural text "item_count" 5 |
| local time zone | timezone | Gets the system's active timezone identifier. | make tz = local time zone |
| access label | a11y label | Sets an accessibility screen-reader label for a UI element. | access label btn to "Submit form" |
| access role | a11y role | Defines the semantic role of a UI element for screen readers. | access role div to "button" |
| access focus | a11y focus | Programmatically moves accessibility focus to an element. | access focus error_msg |
| access announce | a11y announce | Forces the screen reader to announce a specific string immediately. | access announce "Loading complete" |
| access shortcut | a11y shortcut | Defines a keyboard shortcut accessible to screen readers. | access shortcut btn "Alt+S" |
| access contrast | a11y contrast | Checks if the OS has a high-contrast mode enabled. | if access contrast { use_dark_theme() } |
| access scale | a11y scale | Gets the user's preferred text scaling/magnification factor. | make text_size = base_size * access scale |
| read gps | gps read | Requests a single latitude/longitude coordinate from hardware. | make lat, lon = read gps |
| watch gps | gps watch | Subscribes to continuous location updates. | watch gps { |loc| update_map(loc) } |
| read accelerometer | accel | Reads the current X/Y/Z acceleration vector of the device. | make x, y, z = read accelerometer |
| read gyro | gyro | Reads the rotational velocity of the device. | make pitch, roll, yaw = read gyro |
| read magnet | magnet | Reads the magnetic field vector (compass heading). | make heading = read magnet |
| battery status | battery status | Checks if the device is discharging, charging, or full. | make state = battery status |
| battery level | battery level | Gets the current battery charge percentage. | make pct = battery level |
| sleep power | sleep | Puts the physical device into a low-power sleep state. | sleep power |
| hibernate power | hibernate | Puts the physical device into deep hibernation. | hibernate power |
| wake power | wake | Registers a wake-lock to prevent the device from sleeping. | wake power "downloading_file" |
| shut down power | shutdown | Issues an OS-level shutdown command. | shut down power |
| restart power | restart | Issues an OS-level reboot command. | restart power |
| DATABASE, CACHE, SEARCH | |||
| open database | db open | Connects to a relational database. | make db = open database "postgres://..." |
| close database | close | Closes the database connection pool. | close database db |
| run query | query | Executes a SQL query returning rows. | make rows = run query db "SELECT * FROM users" |
| run command | execute | Executes a SQL statement that modifies data (INSERT/UPDATE). | run command db "DELETE FROM logs" |
| prepare query | prepare | Compiles a SQL query for repeated execution. | make stmt = prepare query db
"SELECT * WHERE id=?" |
| bind query | bind | Binds parameters to a prepared query statement to prevent injection. | bind query stmt with [1] |
| get one row | fetch_one | Executes a query and expects exactly one row back. | make user = get one row stmt |
| get all rows | fetch_all | Executes a query and collects all returning rows into a list. | make users = get all rows stmt |
| begin transaction | begin | Starts a database transaction block. | make tx = begin transaction db |
| commit transaction | commit | Commits the current transaction to the database. | commit transaction tx |
| rollback transaction | rollback | Aborts and rolls back the current transaction. | rollback transaction tx |
| migrate database | migrate | Runs pending schema migrations against the database. | migrate database db with "./migrations" |
| last inserted id | last_id | Gets the auto-increment ID of the most recently inserted row. | make id = last inserted id res |
| rows affected | rows_affected | Gets the number of rows changed by an UPDATE/DELETE. | make count = rows affected res |
| database pool | pool | Configures connection pooling settings (max connections, timeouts). | database pool db max connections 10 |
| backup database | backup | Triggers a physical or logical backup of the database. | backup database db to "dump.sql" |
| open memory database | open_in_memory | Opens an ephemeral SQLite database in RAM for testing. | make db = open memory database |
| database transaction | transaction | Wraps a block of code in a transaction that automatically rolls back on error. | database transaction db { ... } |
| open key store | sled/redb/rocksdb | Opens a fast, embedded key-value database. | make kv = open key store "./data.db" |
| get key | get | Retrieves a value by its key. | make val = get key kv "session_xyz" |
| set key | set | Stores or updates a value at a specific key. | set key kv "user_1" to "data" |
| delete key | delete | Removes a key and its value from the store. | delete key kv "session_xyz" |
| key exists | exists | Checks if a key is present in the store. | if key exists kv "config" { ... } |
| list keys | keys | Iterates over all keys in the store (or a specific prefix). | make all = list keys kv prefix "user_" |
| get cache | get | Retrieves a value from an in-memory cache (like Redis or Memcached). | make val = get cache "metrics" |
| set cache | set | Stores a value in the cache. | set cache "metrics" to data |
| delete cache | delete | Removes a value from the cache. | delete cache "metrics" |
| clear cache | clear | Flushes all data from the cache. | clear cache |
| cache time to live | ttl | Sets how long a cached item should remain before expiring. | cache time to live "metrics" 60 seconds |
| expire cache | expire | Forces a cached item to expire immediately or at a specific time. | expire cache "metrics" now |
| search text | text search | Performs a full-text search against a database or search engine. | make hits = search text db "apple" |
| search pattern | regex search | Performs a search using regular expressions. | make hits = search pattern db "^a.*" |
| search file | file search | Scans a file system for filenames matching a query. | make files = search file "./" "index" |
| search glob | glob search | Scans a file system using glob wildcards. | make files = search glob "**/*.js" |
| make index | create index | Creates an inverted index or B-tree index for faster searching. | make idx = make index "users" |
| add to index | add | Adds a document to a search index. | add to index idx doc_id with text |
| remove from index | remove | Removes a document from a search index. | remove from index idx doc_id |
| query index | query | Queries a created search index. | make results = query index idx "rust" |
| CLOUD, REMOTE, CONTAINERS | |||
| sign in cloud | cloud auth | Authenticates with a cloud provider's SDK using credentials. | make session = sign in cloud "aws" |
| set cloud region | region | Sets the default geographic region for cloud operations. | set cloud region to "us-east-1" |
| list cloud instances | instance list | Retrieves a list of running VMs or compute instances. | make vms = list cloud instances |
| start cloud instance | start | Sends a command to boot up a compute instance. | start cloud instance "i-01234" |
| stop cloud instance | stop | Sends a command to shut down a compute instance. | stop cloud instance "i-01234" |
| put cloud object | storage put | Uploads a file or buffer to a cloud object store (e.g., S3). | put cloud object "s3://bucket/file" with data |
| get cloud object | storage get | Downloads an object from cloud storage. | make data = get cloud object
"s3://bucket/file" |
| list cloud objects | storage list | Lists keys/objects available within a cloud storage bucket. | make keys = list cloud objects
"s3://bucket" |
| open cloud database | cloud db | Connects to a managed cloud database (e.g., DynamoDB). | make db = open cloud database
"dynamodb" |
| call cloud function | invoke | Invokes a serverless function (e.g., AWS Lambda). | make res = call cloud function
"ProcessImage" with payload |
| run remote | remote exec | Executes a command on a remote host via SSH/WinRM. | run remote "ls -la" on "server1" |
| put remote | remote copy | Copies a local file to a remote server. | put remote "app.jar" to "server1:/opt" |
| sync remote | remote sync | Synchronizes a local directory with a remote directory (rsync-like). | sync remote "./src" to "server1:/src" |
| build docker | docker build | Builds a container image from a Dockerfile. | build docker "myapp:latest" from "./" |
| pull docker | docker pull | Pulls a container image from a remote registry. | pull docker "ubuntu:20.04" |
| push docker | docker push | Pushes a local container image to a remote registry. | push docker "myrepo/myapp:latest" |
| run docker | docker run | Spawns a new container instance from an image. | make cid = run docker "redis" |
| exec docker | docker exec | Executes a command inside an already running container. | exec docker cid "redis-cli ping" |
| show docker logs | docker logs | Retrieves stdout/stderr logs from a container. | show docker logs cid |
| stop docker | docker stop | Gracefully stops a running container. | stop docker cid |
| remove docker | docker rm | Deletes a stopped container. | remove docker cid |
| list docker | docker ps | Lists all active Docker containers on the host. | make procs = list docker |
| docker info | docker inspect | Retrieves detailed JSON metadata about a container/image. | make info = docker info cid |
| start compose | compose up | Starts a multi-container environment via Docker Compose. | start compose "./docker-compose.yml" |
| stop compose | compose down | Stops and removes a Compose environment. | stop compose "./docker-compose.yml" |
| show compose logs | compose logs | Aggregates logs from all containers in a Compose environment. | show compose logs |
| start vm | vm start | Boots up a local Virtual Machine (e.g., via libvirt or VirtualBox). | start vm "dev_box" |
| stop vm | vm stop | Shuts down a local Virtual Machine. | stop vm "dev_box" |
| make vm snapshot | vm snapshot | Creates a point-in-time state backup of a VM. | make snap = make vm snapshot "dev_box" |
| restore vm snapshot | vm restore | Rolls a VM back to a previously saved snapshot. | restore vm snapshot "dev_box" to snap |
| SECRETS, AUTH, CRYPTO | |||
| get secret | secret manager get | Fetches a sensitive value from a Secrets Manager (e.g., AWS Secrets, HashiCorp Vault). | make key = get secret "api_key" |
| set secret | secret manager set | Stores or rotates a sensitive value in the secrets manager. | set secret "db_pass" to "supersecret" |
| delete secret | secret manager delete | Removes a sensitive value from the secrets manager. | delete secret "old_key" |
| list secrets | list | Lists available secret keys (without revealing values). | make keys = list secrets |
| open secret vault | secure vault | Unlocks a local encrypted key-value store for app secrets. | make v = open secret vault "app.vault" |
| read secret vault | vault read | Reads an encrypted value from the local vault. | make val = read secret vault v "token" |
| write secret vault | vault write | Writes an encrypted value into the local vault. | write secret vault v "token" to "xyz" |
| load credentials | cred load | Loads cloud/system credentials into the current context. | make creds = load credentials "aws" |
| save credentials | cred save | Persists credentials securely to the system keychain. | save credentials creds to "aws" |
| issue token | token issue | Generates a signed authorization token (e.g., JWT). | make token = issue token user_id |
| refresh token | token refresh | Exchanges a refresh token for a newly issued access token. | make new_t = refresh token old_refresh |
| revoke token | token revoke | Invalidates a token before its natural expiration. | revoke token t |
| log in | auth login | Authenticates a user and establishes a session. | make s = log in "user" with "pass" |
| log out | auth logout | Terminates an active session. | log out session |
| get session | auth session | Retrieves the current session state from a request. | make s = get session from request |
| get token | auth token | Extracts a Bearer token from authorization headers. | make t = get token from request |
| refresh login | auth refresh | Updates the session cookie or token to extend its lifetime. | refresh login session |
| check auth | auth verify | Validates if the provided session/token is valid and active. | if check auth session { ... } |
| hash auth | auth hash | Hashes a password for secure database storage. | make h = hash auth "my_password" |
| password auth | auth password | Verifies a plaintext password against its stored hash securely. | if password auth "input" against h |
| oauth login | auth oauth | Initiates an OAuth 2.0 or OIDC authentication flow. | make session = oauth login "google" |
| jwt auth | auth jwt | Verifies a JWT signature and extracts its claims payload. | make claims = jwt auth token |
| saml auth | auth saml | Processes an enterprise SAML SSO assertion. | make session = saml auth request |
| mfa auth | auth mfa | Validates a secondary authentication factor. | if mfa auth code { ... } |
| totp auth | auth totp | Validates a Time-Based One-Time Password (e.g., Google Authenticator). | if totp auth secret code { ... } |
| md5 hash | md5 | Computes the MD5 hash (not recommended for security). | make h = md5 hash data |
| sha1 hash | sha1 | Computes the SHA1 hash (not recommended for security). | make h = sha1 hash data |
| sha256 hash | sha256 | Computes the cryptographically strong SHA-256 hash. | make h = sha256 hash data |
| sha512 hash | sha512 | Computes the cryptographically strong SHA-512 hash. | make h = sha512 hash data |
| blake3 hash | blake3 | Computes the extremely fast BLAKE3 cryptographic hash. | make h = blake3 hash data |
| hmac hash | hmac | Computes a Hash-based Message Authentication Code. | make h = hmac hash key data |
| make crypto random | random bytes | Generates secure random bytes suitable for cryptographic keys. | make key = make crypto random 32 |
| lock data | encrypt | Encrypts plaintext into ciphertext using a key. | make cipher = lock data text with key |
| unlock data | decrypt | Decrypts ciphertext back into plaintext. | make plain = unlock data cipher
with key |
| sign data | sign | Generates a cryptographic signature proving the origin of the data. | make sig = sign data text with priv_key |
| check signature | verify | Verifies that a digital signature is valid for the given data. | if check signature sig against pub_key |
| make key | keygen | Generates an asymmetric public/private keypair. | make pub, priv = make key rsa |
| derive key | derive | Derives a strong cryptographic key from a weak password using a KDF. | make key = derive key "password" |
| pbkdf2 key | pbkdf2 | Derives a key using the PBKDF2 algorithm. | make key = pbkdf2 key "pass" salt |
| scrypt key | scrypt | Derives a key using the memory-hard Scrypt algorithm. | make key = scrypt key "pass" salt |
| argon2 key | argon2 | Derives a key using the modern Argon2 algorithm. | make key = argon2 key "pass" salt |
| aes crypto | aes helper | Provides AES block cipher encryption/decryption operations. | make c = aes crypto key plain |
| chacha crypto | chacha helper | Provides ChaCha20 stream cipher operations. | make c = chacha crypto key plain |
| rsa crypto | rsa helper | Provides RSA asymmetric operations. | make c = rsa crypto pub_key plain |
| ec crypto | elliptic curve helper | Provides Elliptic Curve (ECDH/ECDSA) operations. | make shared = ec crypto pub and priv |
| x509 crypto | x509 helper | Handles encoding/decoding of X509 digital certificates. | make cert = x509 crypto load_der raw |
| load cert | cert load | Loads a digital certificate from a file. | make cert = load cert "app.crt" |
| check cert | cert verify | Validates a certificate against trusted CA roots. | if check cert cert_chain { ... } |
| AI AND VISION | |||
| load model | ai load | Loads a machine learning model (e.g., ONNX, PyTorch) into memory. | make model = load model "yolo.onnx" |
| run model | ai run | Executes an inference pass on the loaded model. | make result = run model using input |
| make embedding | ai embed | Converts text or images into a dense vector embedding for similarity search. | make vec = make embedding "dog" |
| classify data | ai classify | Runs a classification model to categorize input data. | make tag = classify data img |
| detect object | ai detect | Runs an object detection model to find bounding boxes in an image. | make boxes = detect object img |
| tokenize text | ai tokenize | Splits text into tokens based on an LLM tokenizer (e.g., BPE, WordPiece). | make tokens = tokenize text "Hello" |
| generate text | ai generate | Prompts an LLM to generate a text completion. [Image of Large Language Model (LLM) transformer architecture] | make resp = generate text "Write a poem" |
| chat with ai | ai chat | Sends a conversational prompt to an AI model while maintaining history. | make reply = chat with ai session "Hi!" |
| transcribe audio | ai transcribe | Uses a Speech-to-Text model (like Whisper) to transcribe audio. | make txt = transcribe audio "memo.wav" |
| summarize text | ai summarize | Uses an AI model to condense a large block of text. | make brief = summarize text article |
| translate with ai | ai translate | Translates text from one language to another using neural machine translation. | make es = translate with ai "Hello"
to "Spanish" |
| see with ai | ai vision | Passes an image to a multimodal AI for description or Q&A. | make desc = see with ai img |
| find face | vision face | Runs a facial recognition/detection algorithm on an image. | make faces = find face img |
| find object | vision object | Detects objects in an image using standard computer vision techniques. | make cars = find object img "car" |
| segment image | vision segment | Segments an image into masks (e.g., separating foreground from background). | make mask = segment image img |
| track object | vision track | Tracks a moving object across sequential video frames. | track object obj in video_stream |
| match image | vision match | Compares two images to find overlapping features (feature matching). | make match = match image a and b |
| read vision text | vision ocr | Extracts text from an image using an ML-based OCR engine. | make txt = read vision text receipt |
| read vision qr | vision qr read | Locates and decodes a QR code using computer vision. | make url = read vision qr img |
| write vision qr | vision qr write | Generates a visual QR code from data. | make qr = write vision qr "data" |
| AUTOMATION, GIT, BUILD, TEST, DEBUG | |||
| click automatically | auto click | Simulates a hardware mouse click at the current cursor position. | click automatically left |
| move mouse automatically | auto move | Simulates moving the mouse cursor to a specific screen coordinate. | move mouse automatically to 500, 500 |
| type automatically | auto type | Simulates typing a string of text via the keyboard. | type automatically "Hello World" |
| press hotkey automatically | auto hotkey | Simulates pressing a multi-key shortcut. | press hotkey automatically "ctrl+c" |
| wait automatically | auto wait | Pauses automation execution for a specified duration. | wait automatically 1 second |
| find image automatically | auto find image | Searches the screen for a specific template image. | make pos = find image automatically
"btn.png" |
| find text automatically | auto find text | Searches the screen for specific text using OCR. | make pos = find text automatically
"Submit" |
| focus window automatically | auto focus | Brings a specific OS window to the foreground. | focus window automatically "Notepad" |
| capture screen automatically | auto capture | Takes a screenshot of the entire desktop. | capture screen automatically to "a.png" |
| scroll automatically | auto scroll | Simulates scrolling the mouse wheel. | scroll automatically down by 100 |
| drag automatically | auto drag | Simulates clicking, holding, and moving the mouse. | drag automatically from 0,0 to 10,10 |
| drop automatically | auto drop | Releases the simulated dragged item. | drop automatically |
| make git | git init | Initializes a new Git repository in the current directory. | make git "./project" |
| clone git | git clone | Clones a remote Git repository to the local filesystem. | clone git "https://repo.git" |
| add git | git add | Stages file changes for the next commit. | add git "main.rs" |
| commit git | git commit | Records staged changes to the repository history. | commit git "Initial commit" |
| push git | git push | Uploads local commits to a remote repository. | push git "origin" "main" |
| pull git | git pull | Fetches and merges changes from a remote repository. | pull git "origin" "main" |
| fetch git | git fetch | Downloads objects and refs from another repository. | fetch git "origin" |
| branch git | git branch | Creates, lists, or deletes branches. | branch git "feature-x" |
| checkout git | git checkout | Switches branches or restores working tree files. | checkout git "feature-x" |
| merge git | git merge | Joins two or more development histories together. | merge git "feature-x" into "main" |
| rebase git | git rebase | Reapplies commits on top of another base tip. | rebase git onto "main" |
| tag git | git tag | Creates, lists, deletes or verifies a tag object signed with GPG. | tag git "v1.0" |
| diff git | git diff | Shows changes between commits, commit and working tree, etc. | make patch = diff git |
| status git | git status | Shows the working tree status. | make s = status git |
| log git | git log | Shows the commit logs. | make history = log git |
| stash git | git stash | Stashes the changes in a dirty working directory away. | stash git save "temp fixes" |
| remote git | git remote | Manages the set of tracked repositories. | remote git add "origin" "url" |
| make package | cargo new/init | Creates a new Cargo package. | make package "my_app" |
| init package | cargo init | Initializes a new Cargo package in an existing directory. | init package |
| add package | cargo add | Adds dependencies to a Cargo.toml file. | add package "serde" |
| remove package | cargo remove | Removes dependencies from a Cargo.toml file. | remove package "serde" |
| update package | cargo update | Updates dependencies as recorded in the local lock file. | update package |
| lock package | lockfile handling | Generates or interacts with the dependency lock file. | lock package |
| vendor package | cargo vendor | Vendors all dependencies locally for offline building. | vendor package |
| publish package | cargo publish | Packages and uploads this package to a registry. | publish package |
| install package | cargo install | Installs a Rust binary package globally. | install package "ripgrep" |
| uninstall package | uninstall helper | Removes a globally installed Rust binary package. | uninstall package "ripgrep" |
| build project | cargo build | Compiles the current package. | build project |
| clean project | cargo clean | Removes the target directory containing build artifacts. | clean project |
| build debug | cargo build | Compiles the package in unoptimized debug mode. | build debug |
| build release | cargo build --release | Compiles the package in optimized release mode. | build release |
| build target | cargo build --target | Compiles the package for a specific architecture. | build target "wasm32" |
| cross build | cross | Uses the 'cross' tool to compile for foreign architectures via Docker. | cross build "aarch64" |
| run cargo build | cargo build | Executes the Cargo build process. | run cargo build |
| run cargo | cargo run | Compiles and immediately executes the binary. | run cargo |
| test cargo | cargo test | Executes all unit and integration tests in the package. | test cargo |
| check cargo | cargo check | Analyzes the package for errors without compiling to machine code. | check cargo |
| doc cargo | cargo doc | Builds the HTML documentation for the package and its dependencies. | doc cargo |
| format cargo | cargo fmt | Formats all Rust code within the Cargo package. | format cargo |
| lint cargo | cargo clippy | Runs the Clippy linter to catch common mistakes. | lint cargo |
| add cargo dep | cargo add | Adds a dependency to Cargo.toml. | add cargo dep "tokio" |
| remove cargo dep | cargo remove | Removes a dependency from Cargo.toml. | remove cargo dep "tokio" |
| update cargo deps | cargo update | Updates dependencies in Cargo.lock. | update cargo deps |
| publish cargo | cargo publish | Publishes the package to crates.io. | publish cargo |
| bench cargo | cargo bench | Executes all benchmarks within the package. | bench cargo |
| trace log | tracing trace | Emits a tracing event at the TRACE level. | trace log "Verbose data: {}" x |
| debug log | tracing debug | Emits a tracing event at the DEBUG level. | debug log "State: {}" state |
| info log | tracing info | Emits a tracing event at the INFO level. | info log "System ready" |
| warn log | tracing warn | Emits a tracing event at the WARN level. | warn log "Memory high" |
| error log | tracing error | Emits a tracing event at the ERROR level. | error log "Database failed" |
| fatal log | critical log | Emits a critical error log and potentially panics. | fatal log "Disk corrupted" |
| log to file | file logger | Configures the logging system to append to a file. | log to file "app.log" |
| rotate log | rolling file logger | Configures a logger that creates new files periodically (e.g., daily). | rotate log "app.log" daily |
| json log | json logger | Configures the logging system to output structured JSON. | json log true |
| start trace | tracing span start | Begins a new telemetry span for distributed tracing. | make span = start trace "req" |
| trace span | span | Defines a span of time representing a unit of work. | trace span "db_query" { ... } |
| trace event | event | Records a specific telemetry event within a span. | trace event "query_started" |
| end trace | end span | Explicitly ends a telemetry span. | end trace span |
| export trace | telemetry export | Exports telemetry data to an external backend (e.g., Jaeger, OTLP). | export trace to "http://jaeger" |
| count metric | counter | Increments a telemetry metric counter. | count metric "requests" by 1 |
| gauge metric | gauge | Sets a telemetry metric to a specific value. | gauge metric "temp" to 22.5 |
| histogram metric | histogram | Records a value into a telemetry histogram (e.g., request latency). | histogram metric "latency" 150 |
| time metric | timer | Starts a timer to record duration metrics. | make t = time metric "db_time" |
| observe metric | observe | Records an observation for summary or histogram metrics. | observe metric "queue_size" 10 |
| export metrics | exporter | Exposes metrics via an endpoint (e.g., Prometheus /metrics). | export metrics on port 9090 |
| health check | health check | Defines an endpoint to report overall application health. | health check { return true } |
| ready check | readiness | Defines an endpoint to report if the app is ready to receive traffic. | ready check { return db.ok() } |
| live check | liveness | Defines an endpoint to report if the app process is still alive. | live check { return true } |
| make test | test case | Defines a new unit or integration test case. | make test "math works" { ... } |
| check test | assert | Asserts that a condition is true during a test. | check test 1 + 1 == 2 |
| equal test | assert_eq | Asserts that two values are exactly equal during a test. | equal test a and b |
| not equal test | assert_ne | Asserts that two values are not equal during a test. | not equal test a and b |
| true test | assert true | Asserts that a boolean value is true. | true test flag |
| false test | assert false | Asserts that a boolean value is false. | false test flag |
| fail test | fail | Explicitly fails the current test run. | fail test "Should not reach here" |
| skip test | ignore | Marks a test case to be ignored during the test suite run. | skip test "math works" |
| bench test | benchmark | Defines a micro-benchmark to measure performance over iterations. | bench test "sorting" { ... } |
| mock test | mock | Creates a mock object to simulate behavior in a test. | make db = mock test Database |
| stub test | stub | Defines a canned response for a mocked method. | stub test db.get() to return 1 |
| fixture test | fixture | Loads predefined sample data for testing. | make data = fixture test "user.json" |
| snapshot test | snapshot | Compares output against a previously saved 'golden' snapshot. | snapshot test html_output |
| coverage test | coverage | Generates a report showing what lines of code were executed during tests. | run test with coverage |
| break debug | breakpoint | Halts program execution and drops into the interactive debugger. | break debug |
| watch debug | watch | Logs the value of a variable whenever it changes during execution. | watch debug my_var |
| inspect debug | inspect | Prints a detailed, debug-formatted representation of an object. | inspect debug complex_struct |
| stack debug | backtrace | Prints the current call stack trace to the console. | stack debug print |
| trace debug | trace | Enables low-level step-by-step tracing of execution. | trace debug on |
| start profile | profiler start | Begins recording a performance profile. | start profile |
| stop profile | profiler stop | Stops recording a performance profile. | stop profile |
| cpu profile | CPU profile | Samples CPU call stacks to find performance bottlenecks. | cpu profile enable |
| memory profile | memory profile | Tracks heap allocations to find memory leaks. | memory profile enable |
| export flamegraph | flamegraph | Exports profiling data into a visual flamegraph SVG. | export flamegraph "perf.svg" |
| RECOVERY, BACKUP, PLUGINS, FFI, RUST | |||
| catch crash | catch_unwind | Catches a thread panic before it unwinds the entire stack. | make res = catch crash {
risky_code()
} |
| dump crash | dump report | Generates a crash dump or backtrace report. | dump crash to "crash.log" |
| retry | retry helper | Retries an operation if it yields an error. | retry 3 times { fetch_data() } |
| back off | backoff helper | Implements exponential backoff for retrying failed requests. | back off exponentially {
ping_server()
} |
| resume | resume workflow | Resumes a previously suspended or failed workflow state. | resume workflow "job_123" |
| roll back | rollback workflow | Reverts a workflow or saga to its previous safe state on failure. | roll back workflow "job_123" |
| make backup | backup create | Creates a backup archive of data or state. | make b = make backup of "./data" |
| restore backup | backup restore | Restores data from a backup archive. | restore backup b to "./data" |
| check backup | verify backup | Verifies the integrity and checksums of a backup archive. | if check backup b { ... } |
| sync copy | sync copy | Synchronizes files by copying missing or changed ones to a target. | sync copy "./src" to "./dest" |
| sync mirror | sync mirror | Synchronizes files, deleting extras in the destination. | sync mirror "./src" to "./dest" |
| sync delta | sync delta | Syncs only the binary diffs (deltas) of changed files to save bandwidth. | sync delta "./src" to "./dest" |
| watch sync | sync watch | Continuously monitors a directory and syncs changes in real-time. | watch sync "./src" to "./dest" |
| make snapshot | snapshot create | Creates a point-in-time filesystem or state snapshot. | make snap = make snapshot "/vol" |
| restore snapshot | snapshot restore | Reverts a filesystem or state to a saved snapshot. | restore snapshot "/vol" to snap |
| list snapshots | snapshot list | Lists available snapshots for a volume or state. | make snaps = list snapshots "/vol" |
| load module | dynamic module load | Dynamically loads a shared library or plugin at runtime. | make mod = load module "plugin.so" |
| unload module | unload | Unloads a dynamically loaded module from memory. | unload module mod |
| reload module | reload | Hot-reloads a dynamic module for rapid iteration/development. | reload module mod |
| install plugin | install | Registers and installs a plugin into the application framework. | install plugin "auth_plugin" |
| enable plugin | enable | Activates an installed plugin. | enable plugin "auth_plugin" |
| disable plugin | disable | Deactivates a running plugin. | disable plugin "auth_plugin" |
| call plugin | call | Invokes a specific function exported by a plugin. | call plugin "auth_plugin" method "login" |
| load foreign library | libloading | Loads a C-compatible dynamic library (.dll, .so, .dylib). | make lib = load foreign library
"math.dll" |
| call foreign code | ffi call | Calls a function across the Foreign Function Interface (FFI). | call foreign code lib_func(1, 2) |
| bind foreign symbol | ffi bind | Binds a Rust function signature to a loaded C symbol. | bind foreign symbol lib "add" as add_fn |
| open library | lib open | Opens a system or local dynamic library. | make lib = open library "user32.dll" |
| get library symbol | lib symbol | Looks up a memory address for an exported library symbol. | make sym = get library symbol
lib "MessageBoxA" |
| use c | C FFI | Enables C-language ABI compatibility and types. | use c |
| use cpp | C++ bridge | Enables integration with C++ code (e.g., via cxx). | use cpp |
| use winapi | WinAPI | Exposes Windows operating system API bindings. | use winapi |
| use posix | POSIX | Exposes POSIX-compliant OS API bindings. | use posix |
| use objc | Objective-C | Enables messaging Objective-C runtimes (macOS/iOS). | use objc |
| use com | COM | Enables Windows Component Object Model integration. | use com |
| open dynamic library | dlopen | Opens a dynamic library using POSIX dlopen style. | make dl = open dynamic library "libm.so" |
| get dynamic symbol | dlsym | Gets a symbol from an opened dynamic library via dlsym. | make sym = get dynamic symbol dl "cos" |
| load wasm | wasm runtime | Instantiates a WebAssembly runtime (e.g., Wasmtime) and loads a module. | make wasm = load wasm "app.wasm" |
| call wasm | wasm call | Executes an exported WebAssembly function. | call wasm wasm_func with [1, 2] |
| wasm memory | wasm memory | Accesses the linear memory buffer of a WebAssembly instance. | make mem = wasm memory wasm_instance |
| run rust block | inline Rust | Embeds raw Rust code directly within ZelC logic. | run rust block {
println!("Raw rust!");
} |
| call rust | wrapped Rust API | Calls natively compiled Rust functions. | call rust native_function() |
| import rust | generate use | Imports a native Rust crate or module. | import rust std::collections::HashMap |
| add rust crate | dependency injection | Injects a Cargo crate dependency into the build. | add rust crate "tokio" version "1.0" |
| use rust macro | macro hook | Invokes a Rust declarative or procedural macro. | use rust macro vec![1, 2, 3] |
| use rust unsafe | unsafe escape hatch | Opens an unsafe block for low-level memory access. | use rust unsafe { ... } |
| raw rust | passthrough | Injects a raw string of Rust code directly into the compiler output. | raw rust "let x = 5;" |
| bridge cargo | cargo integration bridge | Integrates the ZelC build system tightly with Cargo. | bridge cargo "./Cargo.toml" |
| BLOCKCHAIN AND SECURITY-NATIVE ZELC | |||
| open chain | provider connect | Connects to a blockchain node (e.g., via RPC or WebSocket). | make rpc = open chain "https://mainnet.infura.io" |
| chain account | wallet account | Loads a blockchain account address for interaction. | make acc = chain account "0x123..." |
| chain balance | get balance | Queries the native token balance of an account. | make bal = chain balance acc |
| send chain | send transaction | Constructs, signs, and broadcasts a transaction to the network. | make tx = send chain 1.5 to "0xabc..." |
| call chain | contract call | Executes a read-only smart contract function (no gas cost). | make res = call chain my_contract "totalSupply" |
| deploy chain | deploy contract | Deploys compiled smart contract bytecode to the blockchain. | make addr = deploy chain bytecode
with args |
| watch chain event | subscribe event | Listens for specific smart contract events emitted in new blocks. | watch chain event my_contract "Transfer" |
| chain transaction | tx lookup | Fetches details of a specific transaction hash. | make tx_info = chain transaction "0xhash" |
| sign chain | sign payload | Signs an arbitrary payload using a blockchain wallet's private key. | make sig = sign chain payload |
| make wallet | wallet create | Generates a new secure cryptocurrency wallet (private/public keypair). | make w = make wallet |
| import wallet | wallet import | Imports a wallet using a seed phrase or private key. | make w = import wallet "apple banana..." |
| export wallet | wallet export | Exports the wallet's private key or keystore file securely. | make key = export wallet w |
| read contract | contract read | Reads public state variables directly from a contract. | make val = read contract "0x123" "owner" |
| write contract | contract write | Executes a state-changing transaction on a smart contract. | write contract "0x123" "transfer" with [to, amount] |
| deploy contract | contract deploy | Similar to `deploy chain`, deploys a contract instance. | deploy contract ABI bytecode |
| add to ipfs | ipfs add | Pins a file or data object to the InterPlanetary File System. | make cid = add to ipfs "data.json" |
| get from ipfs | ipfs get | Retrieves data from IPFS using a Content Identifier (CID). | make data = get from ipfs cid |
| send alert | SIEM/SOAR alert action | Dispatches a security alert to a webhook or platform (e.g., PagerDuty, Slack). | send alert "Malware detected on Host A" |
| raise alert | create detection alert | Creates an internal high-priority security detection alert. | raise alert "Suspicious Login" |
| close alert | close alert | Resolves an active security alert in the SIEM/SOAR. | close alert alert_id "False Positive" |
| assign alert | assign analyst | Assigns a security alert to a specific SOC analyst. | assign alert alert_id to "alice" |
| set alert severity | severity setter | Escalates or de-escalates the severity of an alert. | set alert severity alert_id to "Critical" |
| open case | incident case create | Creates an incident tracking case for investigation. | make case = open case "Ransomware Triage" |
| add case note | note add | Appends an analyst note to an incident case. | add case note case_id "Found C2 beacon" |
| attach to case | attach artifact | Attaches digital evidence artifacts (logs, pcaps) to a case. | attach to case case_id "malware.exe" |
| assign case owner | assign owner | Sets the primary investigator for an incident case. | assign case owner case_id to "bob" |
| close case | close case | Marks an incident investigation as resolved. | close case case_id "Remediated" |
| record evidence | evidence log | Logs digital evidence with a timestamp in a tamper-evident audit log. | record evidence "Memory dump acquired" |
| hash evidence | evidence hash | Cryptographically hashes a file to prove it hasn't been altered. | make h = hash evidence "dump.mem" |
| sign evidence | evidence sign | Digitally signs an evidence hash with the investigator's key. | sign evidence h with my_key |
| chain evidence | chain of custody | Updates the chronological documentation (chain of custody) for an artifact. | chain evidence artifact "Transferred to Lab" |
| export evidence | export bundle | Packages artifacts and logs into a secure bundle for legal proceedings. | export evidence case_id to "case.zip" |
| anchor evidence | blockchain anchor | Anchors the hash of the evidence bundle to a public blockchain for immutability. | anchor evidence bundle_hash to "ethereum" |
| make ip indicator | IOC IP object | Creates an Indicator of Compromise (IOC) for a malicious IP address. | make ioc = make ip indicator "192.168.1.100" |
| make domain indicator | IOC domain object | Creates an IOC for a malicious domain name. | make ioc = make domain indicator "evil.com" |
| make hash indicator | IOC hash object | Creates an IOC for a malicious file hash (e.g., MD5/SHA256). | make ioc = make hash indicator "e3b0c44..." |
| make url indicator | IOC URL object | Creates an IOC for a malicious URL. | make ioc = make url indicator "http://x.com/pay" |
| make email indicator | IOC email object | Creates an IOC for a malicious email address or sender. | make ioc = make email indicator "[email protected]" |
| match indicator | IOC match engine | Scans logs or memory to see if a specific IOC is present. | if match indicator ioc in syslog { ... } |
| load threat feed | feed ingest | Ingests external Threat Intelligence feeds (e.g., MISP, STIX/TAXII). | load threat feed "https://feed.misp.org" |
| isolate device | EDR isolate | Commands an Endpoint Detection and Response (EDR) agent to cut a device off from the network. | isolate device "host-042" |
| release device | EDR release | Commands the EDR to restore network connectivity to an isolated device. | release device "host-042" |
| kill process on device | EDR kill | Commands the EDR to terminate a specific process ID on a remote host. | kill process on device "host-042" pid 1337 |
| scan device | EDR scan | Triggers a full filesystem or memory scan on a remote endpoint via EDR. | scan device "host-042" for malware |
| quarantine file | EDR quarantine | Commands the EDR to encrypt and isolate a malicious file on an endpoint. | quarantine file "C:\temp\evil.exe" on "host-042" |
| block ip | firewall block | Injects a rule into the network firewall to block inbound/outbound traffic from an IP. | block ip "192.168.1.100" |
| allow ip | firewall allow | Injects a rule to explicitly permit traffic from an IP address. | allow ip "10.0.0.5" |
| drop traffic | firewall drop | Instructs a firewall or IPS to silently discard matching network packets. | drop traffic from "192.168.1.100" |
| make firewall rule | firewall rule | Constructs a complex firewall rule (ports, protocols, source/dest). | make rule = make firewall rule block tcp 80 |
| remove firewall rule | firewall remove | Removes a previously deployed firewall rule. | remove firewall rule rule_id |
| search siem | SIEM query | Executes a query against the Security Information and Event Management system. | make logs = search siem "login failed" |
| send event to siem | SIEM push | Pushes custom application logs or security events into the SIEM. | send event to siem "App crashed" |
| make siem rule | analytics rule | Creates a persistent correlation or detection rule in the SIEM. | make siem rule "Brute Force Detection" |
| make siem alert | alert | Raises a manual alert within the SIEM console. | make siem alert "Manual Review Required" |
| open siem case | case | Creates a dedicated investigation case within the SIEM platform. | open siem case "Investigate Host A" |
| inspect packet | packet inspect | Performs Deep Packet Inspection (DPI) on a network payload. | make data = inspect packet pcap_file |
| block domain | DNS block | Adds a domain to the DNS sinkhole or firewall blocklist. | block domain "evil.com" |
| sinkhole domain | DNS sinkhole | Redirects DNS queries for a malicious domain to an internal safe IP for analysis. | sinkhole domain "evil.com" to "10.0.0.99" |
| block proxy | proxy block | Blocks a URL or category at the Secure Web Gateway / Proxy level. | block proxy "http://gambling.com" |
| allow proxy | proxy allow | Whitelists a URL at the proxy level. | allow proxy "http://safe.com" |
| quarantine mail | mail quarantine | Intercepts and quarantines a suspicious email at the gateway (e.g., Exchange/Proofpoint). | quarantine mail msg_id |
| release mail | mail release | Releases a false-positive email from quarantine to the user's inbox. | release mail msg_id |
| disable account | identity disable | Suspends a user account in the identity provider (e.g., Active Directory / Okta). | disable account "jdoe" |
| reset password | identity reset | Forces a password reset for a compromised account. | reset password "jdoe" |
| force mfa reset | identity mfa force | Revokes current MFA tokens and forces the user to re-enroll in Multi-Factor Authentication. | force mfa reset "jdoe" |
| lock cloud resource | cloud lock | Applies a resource lock (read-only/cannot delete) to a cloud asset (AWS/Azure). | lock cloud resource "s3://critical-data" |
| tag cloud asset | cloud tag | Applies metadata tags to cloud infrastructure (often used to trigger automated quarantine). | tag cloud asset "i-123" "Status" "Compromised" |
| quarantine cloud instance | cloud quarantine | Moves a cloud VM into an isolated Security Group/VPC. | quarantine cloud instance "i-123" |
| stop container | container stop | Kills a running Docker/Kubernetes container. | stop container "web-pod-xyz" |
| isolate container | container isolate | Applies network policies to isolate a container from the rest of the cluster. | isolate container "web-pod-xyz" |
| run sandbox | sandbox run | Detonates a suspicious file in a secure malware analysis sandbox. | run sandbox "malware.exe" |
| report sandbox | sandbox report | Retrieves the behavioral analysis report from the sandbox. | make report = report sandbox "malware.exe" |
| match yara | yara match | Scans a file or memory buffer against a YARA rule set for malware identification. | if match yara rules on file { ... } |
| match sigma | sigma match | Evaluates SIEM logs against a Sigma rule for generic threat detection. | if match sigma rule on logs { ... } |
| run hunt query | hunt query | Executes an active threat hunting query across the enterprise. | make results = run hunt query "Find mimikatz" |
| pivot hunt | hunt pivot | Takes an IOC from a hunt and pivots to search for related artifacts. | make related = pivot hunt on ioc |
| look up intel | intel lookup | Queries a Threat Intelligence Platform (TIP) for information on an indicator. | make intel = look up intel "1.1.1.1" |
| score intel | intel score | Retrieves the malicious confidence/risk score from a TIP. | make score = score intel "evil.com" |
| score risk | risk score | Calculates a composite risk score for an asset or user based on behavior and vulnerabilities. | make risk = score risk "user:jdoe" |
| check policy | policy check | Evaluates a system configuration against compliance policies (e.g., CIS benchmarks). | if check policy "password_length" { ... } |
| enforce policy | policy enforce | Automatically remediates a system to comply with a security policy. | enforce policy "disable_guest_account" |
| rotate secret | secret rotate | Forces the generation of a new secret/password in the secrets manager. | rotate secret "db_password" |
| rotate key | key rotate | Generates a new cryptographic key and phases out the old one. | rotate key "master_encryption_key" |
| seal vault | vault seal | Immediately locks a secret vault, requiring manual unsealing (e.g., HashiCorp Vault seal). | seal vault |
| unseal vault | vault unseal | Provides key shares to unlock a sealed vault. | unseal vault with shard_1 and shard_2 |