Add trim
option to command chains
#153
Labels
good first issue
Good for newcomers
qol
Improvements that make usage smoother, without introducing new functionality
Add a field
trim
to thecommand
chain source, which trims whitespace from the ends of the output string. It's pretty common to have shell commands that include a useless trailing newline, in which case you have to do something likecommand: [sh, -c, "<cmd> | tr -d '\n'"]
Worth considering: instead of just a boolean, should just be an enum?
none
,start
,end
,both
?Implementation
The text was updated successfully, but these errors were encountered: