Flowscript¶
Flowscript is embedded language in shellflow. It is used in enclosed
region with double curly brackets {{}}
and lines starts with #%
.
You can try flowscript in REPL with running shellflow flowscript
.
Built-in functions¶
basename¶
Return base name of a path. if a suffix is provided and found in the path, this function removes the suffix.
basename("hoge/foo.c") => "foo.c"
basename("hoge/foo.c", ".c") => "foo"
prefix¶
add prefix to arrayed string
prefix("hoge", ["foo", "bar", "hoge"]) => ["hogefoo", "hogebar", "hogehoge"]