Skip to content

Commit

Permalink
luau: improve usage text
Browse files Browse the repository at this point in the history
call out two main subcommands

[skip ci]
  • Loading branch information
jqnatividad committed May 2, 2024
1 parent 2b0b6ff commit cb6b4d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cmd/luau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ The executed Luau has 3 ways to reference row columns (as strings):
1. Directly by using column name (e.g. Amount), can be disabled with -g
2. Indexing col variable by column name: col.Amount or col["Total Balance"]
3. Indexing col variable by column 1-based index: col[1], col[2], etc.
This is only available with the --colindex and --no-headers options.
This is only available with the --colindex or --no-headers options.
Of course, if your input has no headers, then 3. will be the only available
option.
It has two subcommands:
map - Create new columns by mapping the result of a Luau script for each row.
filter - Filter rows by executing a Luau script for each row. Rows that return
true are kept, the rest are filtered out.
Some usage examples:
Sum numeric columns 'a' and 'b' and call new column 'c'
Expand Down

0 comments on commit cb6b4d9

Please sign in to comment.