utils

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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.50.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.50.0

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

SimpleTaskTracker provides a simple in-memory implementation of TaskTracker

func (*SimpleTaskTracker) ClearContextID added in v0.50.0

func (t *SimpleTaskTracker) ClearContextID()

ClearContextID clears the stored context ID

func (*SimpleTaskTracker) ClearTaskID added in v0.50.0

func (t *SimpleTaskTracker) ClearTaskID()

ClearTaskID clears the stored task ID

func (*SimpleTaskTracker) GetContextID added in v0.50.0

func (t *SimpleTaskTracker) GetContextID() string

GetContextID returns the context ID for the current session

func (*SimpleTaskTracker) GetFirstTaskID added in v0.50.0

func (t *SimpleTaskTracker) GetFirstTaskID() string

GetFirstTaskID returns the first task ID in the current session

func (*SimpleTaskTracker) SetContextID added in v0.50.0

func (t *SimpleTaskTracker) SetContextID(contextID string)

SetContextID sets the context ID if not already set

func (*SimpleTaskTracker) SetFirstTaskID added in v0.50.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