notes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotesByIdCmd

type NotesByIdCmd struct {
	Id   string `name:"id" required:"" help:"The ID of the note to retrieve" type:"string"`
	Json bool   `name:"json" help:"Output as JSON" default:"false" type:"bool"`
}

NotesByIdCmd is the command to returns a single note by ID

func (*NotesByIdCmd) Run

func (cmd *NotesByIdCmd) Run(ctx *clictx.Context) error

Run runs the command

type NotesCmd

type NotesCmd struct {
	Byid NotesByIdCmd `cmd:"" help:"Returns a single note."`
	List NotesListCmd `cmd:"" help:"Returns a list of the user's notes."`
}

type NotesListCmd

type NotesListCmd struct {
	Json bool `name:"json" help:"Output as JSON" default:"false" type:"bool"`
}

NotesListCmd is the command to returns a list of the user's notes.

func (*NotesListCmd) Run

func (cmd *NotesListCmd) Run(ctx *clictx.Context) error

Run runs the command

Jump to

Keyboard shortcuts

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