anno

command
v0.0.0-...-56ec46f Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: BSD-3-Clause, BSD-3-Clause Imports: 8 Imported by: 0

README

anno - alternative version / tag / build-id

Usage:
  anno [OPTIONS]

Options:
  -d | --date 2006-01-02T15:04:05  | Use this date instead of the date now. See DATEFORMAT.
  -e | --extension <STRING>        | Append a string to ANNO.
  -i | --ignore-git                | Ignore git repository data.
  -r | --reverse <ANNO> / -        | Resolves a given ANNO to timestamp or reads from stdin.
  -s | --separator <STRING>        | Replacement for the default separator "·".

  --help                           | This help.
  --license                        | Show license information.
  --version                        | Version information.

Examples:
  $ anno                           | New stamp in a git repo dir pointing at 910709a in branch main.
  21·091·49094·main·910709a

  $ anno -i                        | Same as above, without git info.
  21·091·49094

  $ anno --reverse 21·091·49094    | anno is always in UTC.
  2021-04-01 13:38:14 +0000 UTC

  $ anno -e musl                   | Appending arbitrary information.
  23·022·38135·main·178c991·musl

  $ anno -d 2023-11-30T00:03:21    | Use a defined date to create a certain tag.
  23·334·00201·main·066ab40

  $ anno -e start -i               | Adjustable to your context.
  23·022·38135·start

  $ anno -e foo -e bar -i          | Multiple extensions possible.
  23·022·38135·foo·bar

Environment Variables:
  DATEFORMAT | To set a different date format see https://pkg.go.dev/time#pkg-constants (Default: 2006-01-02T15:04:05)

Website:
  https://catinello.eu/anno

License:
  BSD-3-Clause - 2016 Antonino Catinello

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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