replace

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

TODO: Add --name and --note flags to replace command to allow replacing in notes (currently only replaces in item.Name)

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