Skip to main content

Module structured_attrs

Module structured_attrs 

Source
Available on crate feature serde only.
Expand description

Contains the code rendering the shell script that’s used for structured attrs.

Functions§

is_good_simple_value 🔒
determine if the value is “good to print”. We essentially want to reject floats which are not just integers.
is_valid_sh_var_name 🔒
Checks whether s is a valid shell variable name, matching [A-Za-z_][A-Za-z0-9_]*.
write_attrs_sh_file
for a given json map, write the file contents of the to-be-sourced bash script. Cf. writeStructuredAttrsShell in Cppnix.
write_shell_escaped_single_quoted 🔒
Writes an escaped version of the passed string to the writer.
write_simple_type 🔒