utils

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSimpleTaskTracker added in v0.49.0

func NewSimpleTaskTracker() domain.TaskTracker

NewSimpleTaskTracker creates a new SimpleTaskTracker

func WriteViperConfigWithIndent

func WriteViperConfigWithIndent(v *viper.Viper, indent int) error

WriteViperConfigWithIndent writes the current Viper config with specified indentation This uses the same approach as config init to ensure consistent YAML structure

Types

type SimpleTaskTracker added in v0.49.0

type SimpleTaskTracker struct {
	// contains filtered or unexported fields
}

SimpleTaskTracker provides a simple in-memory implementation of TaskTracker

func (*SimpleTaskTracker) ClearTaskID added in v0.49.0

func (t *SimpleTaskTracker) ClearTaskID()

ClearTaskID clears the stored task ID

func (*SimpleTaskTracker) GetFirstTaskID added in v0.49.0

func (t *SimpleTaskTracker) GetFirstTaskID() string

GetFirstTaskID returns the first task ID in the current session

func (*SimpleTaskTracker) SetFirstTaskID added in v0.49.0

func (t *SimpleTaskTracker) SetFirstTaskID(taskID string)

SetFirstTaskID sets the first task ID if not already set

Jump to

Keyboard shortcuts

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