minor refactor v1.1.0
authoralex <[email protected]>
Thu, 23 Sep 2021 18:47:36 +0000 (11:47 -0700)
committeralex <[email protected]>
Sat, 25 Sep 2021 07:45:44 +0000 (00:45 -0700)
commit8a8d7c9f2666ce077adb42d8809df2f24d0836d5
treef32a8bba5416ca4d2cc89fcee76654de085e5bc1
parentbc7731cfb7c0b5d981e08686e92f8c26fae603fc
minor refactor

updated autoconf/automake flags
changed workouts.db location to be dependent on current directory, --homedir now changes directory
add const qualifiers to functions where appropriate
refactored ls
added --name-only option to workouts ls (added for bash completion functionality)
fixed existing ls tests; added more tests to cover --last-done and --name-only
created bash completion script and added to automake
41 files changed:
.gitignore
Makefile.am
bash-completion/workouts [new file with mode: 0644]
configure.ac
include/data.h
include/date.h
include/ls.h
include/opt.h
src/add.c
src/data/attr.c
src/data/recent.c
src/data/setup.c
src/data/workout.c
src/date.c
src/default.c
src/ls/attr.c
src/ls/last.c
src/ls/ls.c
src/ls/name.c [new file with mode: 0644]
src/ls/recent.c
src/ls/single.c
src/ls/workout.c
src/opt/homedir.c
src/opt/rows.c
src/rm.c
src/update.c
src/usage.c
test/integration/package-lock.json
test/integration/test/basic.test.js
test/integration/test/ls.integration.test.js
test/unit/Makefile.am
test/unit/add.tests.c
test/unit/data.attr.tests.c
test/unit/data.recent.tests.c
test/unit/data.workout.tests.c
test/unit/ls.tests.c
test/unit/ls.tests.h [deleted file]
test/unit/test_utils.c
test/unit/test_utils.h
test/unit/toggle.tests.c
test/unit/update.tests.c