id

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdCmd = &cobra.Command{
	Use:   "id",
	Short: "Generate a new byte id",
	Long: heredoc.Doc(`
    Bytes are stored as markdown using a unique id representing the date and time
    the byte was created. This command will generate a new id and print it to
    stdout. This is typically not needed as the id is automatically generated
    when creating a new byte.
  `),
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Println(utils.GenerateId())
	},
}

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