cmdrecord

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &command.C{
	Name: "record",
	Help: "Commands to manipulate records.",

	Commands: []*command.C{
		{
			Name:     "add",
			Usage:    "<label>",
			Help:     "Add a new record with the specified label.",
			SetFlags: command.Flags(flax.MustBind, &addFlags),
			Run:      command.Adapt(runRecordAdd),
		},
		{
			Name:     "show",
			Usage:    "<query>",
			Help:     "Print the config record for the specified query.",
			SetFlags: command.Flags(flax.MustBind, &showFlags),
			Run:      command.Adapt(runRecordShow),
		},
		{
			Name:  "edit",
			Usage: "<query>",
			Help:  "Edit the record matching the specified query.",
			Run:   command.Adapt(runRecordEdit),
		},
		{
			Name:  "archive",
			Usage: "<query> ...",
			Help:  "Archive the specified records.",
			Run:   command.Adapt(runRecordArchive),
		},
		{
			Name:  "unarchive",
			Usage: "<query> ...",
			Help:  "Unarchive the specified records.",
			Run:   command.Adapt(runRecordArchive),
		},
	},
}

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