flags

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Help       = flag.Bool("help", false, "Print this message")
	Type       = flag.String("type", "txt", "Specifies the file type, by default txt")
	Delete     = flag.String("del", "", "Deletes a note by specifying its id or name, e.g. gonotes --del 12/note-name")
	Open       = flag.String("open", "", "Edit a note clarifying its name, i.e. gonotes --open [note-name] (you can also put its id)")
	Temporal   = flag.Bool("tmp", false, "The note will be saved in /tmp, i.e., it will be deleted on reboot.")
	Config     = flag.Bool("config", false, "It is used to clarify that you want to edit a configuration.")
	SetDefault = flag.String("set-editor", "nano", "Set the default editor.")
	New        = flag.String("new", "", "Create a new note, usage: gonotes --new [note name], the type of the file is specified with --type")
	Log        = flag.Bool("log", false, "Prints a list of the notes with their name and id")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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