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
sis 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