Documentation
¶
Overview ¶
Package printer provides functions to format and print bookmark data, including records, tags, and repository information.
Index ¶
- Variables
- func ByField(bs []*bookmark.Bookmark, f string) error
- func DatabasesTable(ctx context.Context, c *ui.Console, fp string) error
- func Display(c *ui.Console, format string, bs []*bookmark.Bookmark) error
- func Notes(c *ui.Console, bs []*bookmark.Bookmark) error
- func Oneline(c *ui.Console, bs []*bookmark.Bookmark) error
- func Records(c *ui.Console, bs []*bookmark.Bookmark) error
- func RecordsJSON(bs []*bookmark.Bookmark) error
- func RepoInfo(a *app.Context) error
- func TagsJSON(ctx context.Context, p string) error
- func TagsList(ctx context.Context, p string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidFormat = errors.New("invalid format") ErrUnknownFormat = errors.New("unknown format") )
View Source
var ValidFormats = []string{
"oneline",
"json",
"id",
"url",
"title",
"tags",
"desc",
"notes",
}
Functions ¶
func DatabasesTable ¶ added in v0.1.22
DatabasesTable shows a simple table in database information.
func RecordsJSON ¶
RecordsJSON formats the bookmarks in RecordsJSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.