genid

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "id",
	Usage: "Generate a time-based ID",
	Flags: []cli.Flag{
		&cli.TimestampFlag{
			Name:    "timestamp",
			Aliases: []string{"T"},
			Usage:   "The timestamp to generate an ID for (format: 2006-01-02T15:04:05)",
			Layout:  "2006-01-02T15:04:05",
		},
		&cli.UintFlag{
			Name:    "days-ago",
			Aliases: []string{"D"},
			Usage:   "The number of days ago to generate an ID for",
			Value:   0,
		},
	},
	Action: run,
}

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