cmd

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edit

type Edit struct {
	Force bool `short:f help:"Do not confirm before editing many notes at the same time."`
	cli.Filtering
}

Edit opens notes matching a set of criteria with the user editor.

func (*Edit) Run

func (cmd *Edit) Run(container *cli.Container) error

type Graph added in v0.8.0

type Graph struct {
	Format string `group:format short:f                        help:"Format of the graph among: json." enum:"json" required`
	Quiet  bool   `group:format short:q help:"Do not print the total number of notes found."`
	cli.Filtering
}

Graph produces a directed graph of the notes matching a set of criteria.

func (*Graph) Run added in v0.8.0

func (cmd *Graph) Run(container *cli.Container) error

type Index

type Index struct {
	Force   bool `short:"f" help:"Force indexing all the notes."`
	Verbose bool `short:"v" help:"Print detailed information about the indexing process."`
	Quiet   bool `short:"q" help:"Do not print statistics nor progress."`
}

Index indexes the content of all the notes in the notebook.

func (*Index) Help

func (cmd *Index) Help() string

func (*Index) Run

func (cmd *Index) Run(container *cli.Container) error

type Init

type Init struct {
	Directory string `arg optional type:"path" default:"." help:"Directory containing the notebook."`
}

Init creates a notebook in the given directory

func (*Init) Run

func (cmd *Init) Run(container *cli.Container) error

type LSP

type LSP struct {
	Log string `hidden type:path placeholder:PATH help:"Absolute path to the log file"`
}

LSP starts a server implementing the Language Server Protocol.

func (*LSP) Run

func (cmd *LSP) Run(container *cli.Container) error

type List

type List struct {
	Format     string `` /* 179-byte string literal not displayed */
	Header     string `group:format                                help:"Arbitrary text printed at the start of the list."`
	Footer     string `group:format default:\n                     help:"Arbitrary text printed at the end of the list."`
	Delimiter  string "group:format short:d default:\n             help:\"Print notes delimited by the given separator.\""
	Delimiter0 bool   "" /* 156-byte string literal not displayed */
	NoPager    bool   `group:format short:P help:"Do not pipe output into a pager."`
	Quiet      bool   `group:format short:q help:"Do not print the total number of notes found."`
	cli.Filtering
}

List displays notes matching a set of criteria.

func (*List) Run

func (cmd *List) Run(container *cli.Container) error

type New

type New struct {
	Directory string            `arg optional default:"." help:"Directory in which to create the note."`
	Title     string            `short:t   placeholder:TITLE help:"Title of the new note."`
	Group     string            `` /* 132-byte string literal not displayed */
	Extra     map[string]string `                            help:"Extra variables passed to the templates." mapsep:","`
	Template  string            `          placeholder:PATH  help:"Custom template used to render the note."`
	PrintPath bool              `short:p                     help:"Print the path of the created note instead of editing it."`
	DryRun    bool              `` /* 138-byte string literal not displayed */
}

New adds a new note to the notebook.

func (*New) Run

func (cmd *New) Run(container *cli.Container) error

type Tag added in v0.7.0

type Tag struct {
	List TagList `cmd group:"cmd" default:"withargs" help:"List all the note tags."`
}

Tag manages the note tags in the notebook.

type TagList added in v0.7.0

type TagList struct {
	Format     string   `` /* 155-byte string literal not displayed */
	Header     string   `group:format                                help:"Arbitrary text printed at the start of the list."`
	Footer     string   `group:format default:\n                     help:"Arbitrary text printed at the end of the list."`
	Delimiter  string   "group:format short:d default:\n             help:\"Print tags delimited by the given separator.\""
	Delimiter0 bool     "" /* 155-byte string literal not displayed */
	NoPager    bool     `group:format short:P help:"Do not pipe output into a pager."`
	Quiet      bool     `group:format short:q help:"Do not print the total number of tags found."`
	Sort       []string `group:sort short:s placeholder:TERM help:"Order the tags by the given criterion."`
}

TagList lists all the note tags.

func (*TagList) Run added in v0.7.0

func (cmd *TagList) Run(container *cli.Container) error

Jump to

Keyboard shortcuts

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