Secure and sleek dosage logging for the terminal.
skrive [-f path to doses.dat]
skrive log [-f path to doses.dat] [<quantity> <substance> <route> [time-spec]]
The log command's time argument can be formatted using either dhm
formatting or as a number of minutes.
For example, 90 minutes can be formatted as follows;
1h30m
1h30
90
Skrive selects a path for the doses file in the following order:
- The path provided with the
-f
flag, as shown above - The path given by the environment variable
SKRIVE_DOSES_PATH
, if set - The path to a file called
doses.dat
in your home directory~/doses.dat
on Unix-like platformsC:\Users\<user>\doses.dat
on Windows
Skrive will attempt to create the file if it does not exist.