people

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package people handles scene persons, their names, aliases and roles.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCronDir = errors.New("cronjob directory does not exist")
	ErrHTMLDir = errors.New("the directory.html setting is empty")
)

Functions

func Cronjob added in v1.6.0

func Cronjob(db *sql.DB, w io.Writer, directory string, force bool) error

Cronjob is used for system automation to generate dynamic HTML pages.

func DataList

func DataList(db *sql.DB, w io.Writer, dest string, f Flags) error

DataList prints an auto-complete list for HTML input elements.

func Filters

func Filters() []string

Filters is a Role slice for use with the Cobra filterFlag.

func Fix

func Fix(db *sql.DB, w io.Writer) error

Fix any malformed names found in the database.

func HTML

func HTML(db *sql.DB, w io.Writer, dest string, f Flags) error

HTML prints a snippet listing links to each person.

func Print

func Print(db *sql.DB, w io.Writer, f Flags) error

Print lists people filtered by a role and summaries the results.

func Roles

func Roles() string

Roles or jobs of people.

func Tags added in v1.11.0

func Tags() []string

Tags are categories of people.

Types

type Flags added in v1.11.0

type Flags struct {
	Filter   string // Filter people by category.
	Counts   bool   // Counts the person's total files.
	Progress bool   // Progress counter when requesting database data.
}

Flags for people functions.

func (Flags) HTML added in v1.11.0

func (f Flags) HTML(db *sql.DB, w io.Writer, dest string) error

HTML prints a snippet listing links to each group, with an optional file count.

Directories

Path Synopsis
internal
person
Package person contains the shared Person object for individual people.
Package person contains the shared Person object for individual people.
role
Package role handles the job or activity a person was credited with.
Package role handles the job or activity a person was credited with.

Jump to

Keyboard shortcuts

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