Functionality, Commands and Syntax #6
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Functions:
nowpastfrequence-interval averagelatest Logentryspecific logentry (isn't this a generalized form of 1.)multi-dose lookupsedit-fieldannotaterevert-changenullify-fieldundo-doselogremove-entriestotaldosecountperiod-baseddosecount (interval and/or timestamp)+filter patterns for custom queryCommands with Syntax:
Breakdown and issues as they come up.
For the
amountfield when logging a dose maybe we can use a converter which will be available in command wrapping usingaddConverter(). Suggested converter namesqtyFor logging doses for the past is it better to use the hacky
--ago HHMMas before, or to use thehumanizedform--ago 2h30mand what about the ISO Time Format (resolution possible: 1 sec and setting Offset component is disallowed.Adding
@dose <amount> <name> [<roa>] [--notes [[note1] [note2]..[note n]]]@dose [--ago <HHMM>] <amount> <name> [<roa>]@doselog --from <HHMM> --till <HHMM> [--spread <coeff>] [--total] <amount> <name> [<roa>]??Lookup
@lastdose@lastdose <n>@querydoses<n>or--interval 2h30mor--tstamp 2020-10-01T21:00:00Some good inspiration available from https://github.com/psybits/gopsydose