Documentation
¶
Index ¶
- func HasUncheckedCheckbox(body string) bool
- func IsMultiLineCommand(comment string) bool
- func Normalize(comment string) string
- func PreprocessSpecialCommands(commandStr string) string
- func SplitCommandLines(comment string) []string
- func SplitRawCommandLines(comment string) []string
- func ToggleAllUncheckedCheckboxes(body string) (string, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasUncheckedCheckbox ¶
HasUncheckedCheckbox reports whether the body contains at least one unchecked checkbox.
func IsMultiLineCommand ¶
IsMultiLineCommand checks if a comment contains multiple command lines
func Normalize ¶
Normalize normalizes a comment for consistent processing by trimming whitespace and handling common escape sequences that might appear in command line inputs
func PreprocessSpecialCommands ¶
PreprocessSpecialCommands handles special command transformations for complete command strings
func SplitCommandLines ¶
SplitCommandLines splits a multi-line comment into individual command lines
func SplitRawCommandLines ¶
SplitRawCommandLines splits a multi-line comment into individual command lines without preprocessing
func ToggleAllUncheckedCheckboxes ¶
ToggleAllUncheckedCheckboxes returns a comment body where all unchecked checkboxes ([ ]) are marked as checked ([x]). The second return value indicates how many checkboxes were toggled.
Types ¶
This section is empty.