comment

package
v0.0.0-...-b41f85f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasUncheckedCheckbox

func HasUncheckedCheckbox(body string) bool

HasUncheckedCheckbox reports whether the body contains at least one unchecked checkbox.

func IsMultiLineCommand

func IsMultiLineCommand(comment string) bool

IsMultiLineCommand checks if a comment contains multiple command lines

func Normalize

func Normalize(comment string) string

Normalize normalizes a comment for consistent processing by trimming whitespace and handling common escape sequences that might appear in command line inputs

func PreprocessSpecialCommands

func PreprocessSpecialCommands(commandStr string) string

PreprocessSpecialCommands handles special command transformations for complete command strings

func SplitCommandLines

func SplitCommandLines(comment string) []string

SplitCommandLines splits a multi-line comment into individual command lines

func SplitRawCommandLines

func SplitRawCommandLines(comment string) []string

SplitRawCommandLines splits a multi-line comment into individual command lines without preprocessing

func ToggleAllUncheckedCheckboxes

func ToggleAllUncheckedCheckboxes(body string) (string, int)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL