commands

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionFunc added in v0.0.3

type ActionFunc func(int, *lib.Zettel) (bool, error)

type ArgNormalizeFunc added in v0.0.3

type ArgNormalizeFunc func(int, string) (string, error)

type CommandRunFunc

type CommandRunFunc func(*lib.Kasten) error

func GetSubcommandAdd

func GetSubcommandAdd(f *flag.FlagSet) CommandRunFunc

func GetSubcommandAutocomplete

func GetSubcommandAutocomplete(f *flag.FlagSet) CommandRunFunc

func GetSubcommandBuild added in v0.0.4

func GetSubcommandBuild(f *flag.FlagSet) CommandRunFunc

func GetSubcommandCat added in v0.0.1

func GetSubcommandCat(f *flag.FlagSet) CommandRunFunc

func GetSubcommandClean

func GetSubcommandClean(f *flag.FlagSet) CommandRunFunc

func GetSubcommandEdit

func GetSubcommandEdit(f *flag.FlagSet) CommandRunFunc

func GetSubcommandMv added in v0.0.3

func GetSubcommandMv(f *flag.FlagSet) CommandRunFunc

func GetSubcommandNew

func GetSubcommandNew(f *flag.FlagSet) CommandRunFunc

func GetSubcommandRm

func GetSubcommandRm(f *flag.FlagSet) CommandRunFunc

type HydrateFunc added in v0.0.3

type HydrateFunc func(int, *lib.Zettel, string) error

type Processor

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

func MakeProcessor

func MakeProcessor(e *lib.Kasten, files []string, zp printer.ZettelPrinter) (processor *Processor)

func (*Processor) ActionZettel added in v0.0.1

func (p *Processor) ActionZettel(i int, z *lib.Zettel) (err error)

func (*Processor) HydrateFile added in v0.0.1

func (p *Processor) HydrateFile(i int, path string) (z *lib.Zettel, err error)

func (*Processor) Run

func (p *Processor) Run() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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