Directories created under $BASEDIR are treated as profiles (if they exist). The default profile is assumed to be 'default'.
Directories created under $BASEDIR are treated as profiles (if they exist). The default profile is assumed to be 'default'.
Specify -p <profile> as the first argument to $0 to operate on a different one
Specify -p <profile> as the first argument to $0 to operate on a different one
Run with a date-compatible string to generate/open only that file
i.e, $0 today; $0 tuesday; etc
Run with "asset" to spin up a new empty file with an asset tag. This is currently assumed to be plain text that complements the log, but makes little sense to included.
Run with "asset" to spin up a new empty file with an asset tag. This is currently assumed to be plain text that complements the log, but makes little sense to included.
At some point this will be expanded to handle other files
At some point this will be expanded to handle other files
Run with "asset <ID>" to open said asset.
Run with "asset <ID>" to open said asset.
Run with "review" ($0 review), and you will get a rundown of complete and incomplete tasks for the week.
Run with "review" ($0 review), and you will get a rundown of complete and incomplete tasks for the week.
Optionally, supply with date-compatible strings as "$0 review <start> [end] to use a range, end defaults to yesterday
Optionally, supply with date-compatible strings as "$0 review <start> [end] to use a range, end defaults to yesterday
A task is considered complete if it matches the regex /^ \*/ and incomplete matching /* \-/
A task is considered complete if it matches the regex /^ \*/ and incomplete matching /* \-/
@ -58,6 +59,13 @@ $0 - Captain's log
If $CLDIR is a git repo (git rev-parse returns 0), it will be updated and auto committed unless --no-git is passed
If $CLDIR is a git repo (git rev-parse returns 0), it will be updated and auto committed unless --no-git is passed
TAGS can be created by prefixing the name of the tag with '//'
This stores a list of generated links to the tag in an asset.
They can then be reviewed with "$0 tag review <tag>"
This allows for a quick view of the tag's history. Consider it like a project or ongoing task
Reminders for tasks not completed the day before are transferred to the following day
EOF
EOF
}
}
@ -124,18 +132,18 @@ function schedule() {
function prev_working_day() {
function prev_working_day() {
if [ "$(date +%a)" == 'Mon' ]; then modY=3;fi
if [ "$(date ${1+-d "$1"} +%a)" == 'Mon' ]; then modY=3;fi
date +%F -d "-${modY:-1} day"
date +%F -d "$1-${modY:-1} day"
}
}
function today() {
function today() {
date +%F
date ${1+-d "$1"} +%F
}
}
function next_working_day() {
function next_working_day() {
if [ "$(date +%a)" == 'Fri' ]; then modT=3;fi
if [ "$(date ${1+-d "$1"} +%a)" == 'Fri' ]; then modT=3;fi