gantt
gantt copied to clipboard
Can you show some ready examples?
What command line parameters needed? Can you give some examples with parameters and files?
any news here? It looks so promising but doesn't run nicely. Such a pity.
Depends on the sh version:
ok: GNU bash, Version 5.1.4(1)-release (x86_64-pc-linux-gnu)
fails: GNU bash, version 3.2.57(1)-release (arm64-apple-darwin20)
fails: dash (2003)
On my laptop (with Arch Linux) gantt
works with dash (my /bin/sh
) when I apply pull request #4 plus this patch:
diff --git a/bin/gantt b/bin/gantt
index 47c8e11..aa0c74a 100755
--- a/bin/gantt
+++ b/bin/gantt
@@ -386,7 +386,7 @@ main () {(
characters_offset="0"
total_hours="0"
while read -r TASK; do
- printf "\\e[1m\\e[4m%s\\e[0m\\n" "${TASK}"
+ printf "\033[1m\033[4m%s\033[0m\n" "${TASK}"
SUBTASKS="$(input_task_get_subtasks "${INPUT:?}" "${TASK}")"
while read -r SUBTASK; do
SUBTASK_NAME="$(subtask_get_name "${SUBTASK}")"