Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
RunCommand executes a shell command It returns the output (trimmed) and an error if the command fails
func RunCommandSilent ¶
RunCommandSilent executes a command (alias for RunCommand now, as RunCommand is also silent on success) kept for backward compatibility if needed, or we can remove it. The previous implementation was identical except for logging.
func RunShellCommand ¶ added in v0.0.10
RunShellCommand executes a shell command in a cross-platform way On Windows: uses cmd.exe /C On Unix (Linux/macOS): uses sh -c
Types ¶
type Bashrc ¶ added in v0.0.10
type Bashrc struct {
// contains filtered or unexported fields
}
Bashrc handles updates to .bashrc file using markers
func NewBashrc ¶ added in v0.0.10
func NewBashrc() *Bashrc
NewBashrc creates a new Bashrc handler for ~/.bashrc
type ConsoleFilter ¶
type ConsoleFilter struct {
// contains filtered or unexported fields
}
ConsoleFilter buffers console output and filters out passing tests when in quiet mode.
func NewConsoleFilter ¶
func NewConsoleFilter(quiet bool, output func(string)) *ConsoleFilter
func (*ConsoleFilter) Add ¶
func (cf *ConsoleFilter) Add(input string)
func (*ConsoleFilter) Flush ¶
func (cf *ConsoleFilter) Flush()
type DevBackup ¶ added in v0.0.10
type DevBackup struct {
// contains filtered or unexported fields
}
DevBackup handles backup operations
func NewDevBackup ¶ added in v0.0.10
func NewDevBackup() *DevBackup
NewDevBackup creates a new DevBackup instance
func (*DevBackup) GetCommand ¶ added in v0.0.10
GetCommand retrieves the backup command First checks environment variable, then falls back to .bashrc
func (*DevBackup) Run ¶ added in v0.0.10
Run executes the backup command asynchronously Returns a message for the summary or empty string if not configured
func (*DevBackup) SetCommand ¶ added in v0.0.10
SetCommand sets the backup command in .bashrc and current environment
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git handler for Git operations
func (*Git) GenerateNextTag ¶
GenerateNextTag calculates the next semantic version
func (*Git) GetLatestTag ¶
GetLatestTag gets the latest tag
type Go ¶
type Go struct {
// contains filtered or unexported fields
}
Go handler for Go operations