Skip to content

nuggit history

David Edell edited this page Jun 11, 2021 · 1 revision

date: 2021-06-09 section: 1p title: NUGGIT_HISTORY

\

SYNOPSIS

View and manage the nuggit log file. If run without arguments, this script will display the log file in summary view.

--message | -m

: Write the specified message to the log file

--summary | --no-summary

: If set (default), only the primary entries of nuggit commands executed will be shown. Otherwise, any additional records, for example of git commands logged by nuggit actions, will also be shown. Viewing all entries may also be enabled with --verbose, --all, -v, or -a

--last

: Display details on the last command logged.

--clear

: Clear all entries from the log file (a new entry will be appended for this action)

--raw

: View the log file in raw, unparsed format.

--today

: Only show log entries from the past 24 hours.

--days | --hours

: Only specify log entries from the specified number of days and/or hours (flags may be combined).

:

TODO

- Support for clearing log by date or number of (prime) entries. - Support for filtering log by date or limiting number of entries - Less-like functionality? - Support for disabling colorization (ie: --no-color => $ENV{ANSI_COLORS_DISABLED}=1 ? - file option to allow parsing of specified log file. Bypasses is-a-nuggit check, not compatible with clear flag - Option to export filtered log selection to a file (filtered by date only) for easy sharing - Replay option?

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 227:

: Expected text after =item, not a bullet

Clone this wiki locally