Module garden::syntax[][src]

Expand description

Command-line syntax conventions

Functions

graft_basename

Return the graft basename. “@foo::bar::baz” -> “foo”

is_digit

Return true if the string contains 0-9 digits only

is_exec

Return true if string is an $ exec expression.

is_garden

Return true if string is a :garden expression.

is_graft

Return true if string is a graft::value expression.

is_group

Return true if string is a %group expression.

is_tree

Return true if string is a @tree expression.

split_graft

Split a string into pre and post-graft namespace string refs

split_string

Safely a string into pre and post-split references

trim

Trim garden, group, and tree prefixes

trim_exec

Trim the “$ “ prefix from an exec expression

trim_graft

Remove the graft basename leaving the remainder of the graft string.