You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devbox: add AppendScript method to ConfigShellCmds (#149)
This method takes a script as a string and appends it to the slice of
shell commands in the config. From the docs:
AppendScript appends each line of a script to s.Cmds. It also
applies the following formatting rules:
- Trim leading newlines from the script.
- Trim trailing whitespace from the script.
- If the first line of the script begins with one or more tabs ('\t'),
then unindent each line by that same number of tabs.
- Remove trailing whitespace from each line.
Note that unindenting only happens when a line starts with at
least as many tabs as the first line. If it starts with
fewer tabs, then it is not unindented at all.
See `config_test.go` for an example.
0 commit comments