replace

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectReplacements

func CollectReplacements(items []*workflowy.Item, opts Options, currentDepth int, results *[]Result)

Types

type Options

type Options struct {
	Pattern     *regexp.Regexp
	Replacement string
	Interactive bool
	DryRun      bool
	Depth       int
}

type Result

type Result struct {
	ID         string `json:"id"`
	OldName    string `json:"old_name"`
	NewName    string `json:"new_name"`
	URL        string `json:"url"`
	Applied    bool   `json:"applied"`
	Skipped    bool   `json:"skipped,omitempty"`
	SkipReason string `json:"skip_reason,omitempty"`
}

func (Result) String

func (r Result) String() string

Jump to

Keyboard shortcuts

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