Documentation
¶
Overview ¶
Package shellcmd separates what a shell command runs from the data in it, so that the rules do not take the text of a file or a message for a command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Code ¶
Code is WithoutHeredocs with the text inside quotes removed, except a script that sh -c, eval or ssh runs. The quotes stay, so `git commit -m "rm -rf"` becomes `git commit -m ""`.
func Segment ¶
Segment returns the simple command around byte offset i of s, for example "rm -rf build" from "make && rm -rf build; ls".
func WithoutHeredocs ¶
WithoutHeredocs removes the bodies of heredocs. A body is input data, for example the content of a file that the command writes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.