diff options
| author | 2025-08-08 07:03:29 +0500 | |
|---|---|---|
| committer | 2025-08-08 07:03:29 +0500 | |
| commit | 5351ead09fad92495d86fdecf51f44ee0c7d6330 (patch) | |
| tree | 32fc834bdac254673c149b4ebc13705c113fbebb | |
| parent | 617e9d3d8e5533b1b1c5006401f2edc93cab0138 (diff) | |
refactor project.sh
| -rwxr-xr-x | lib/project.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/project.sh b/lib/project.sh index f798fa0..13cd2c5 100755 --- a/lib/project.sh +++ b/lib/project.sh @@ -110,14 +110,14 @@ function taskCheck() { #****** function taskProj() { local task - local projName + local projectName local exitCriteria local idTask local tags task="$1" tags=$(getTags "$1") - projName=$(getProjName "$1") + projectName=$(getProjName "$1") exitCriteria=$(getExitCriteria "$1") readarray -t annotations < <(task "$1" export | jq -r '.[] | .annotations[1:] | .[].description') @@ -126,20 +126,20 @@ function taskProj() { task "$task" modify priority: -someday fi - task "$task" modify project:"$projName" description:"$exitCriteria" + task "$task" modify project:"$projectName" description:"$exitCriteria" denotateAllAnnotations "$task" for taskIndex in "${!annotations[@]}"; do if [[ "$taskIndex" -eq 0 ]]; then - task add "${annotations[$taskIndex]}" project:"$projName" order:"$((taskIndex + 2))" + task add "${annotations[$taskIndex]}" project:"$projectName" order:"$((taskIndex + 2))" +current idTask=$(getLatestTaskId) continue fi - task add "${annotations[$taskIndex]}" project:"$projName" order:"$((taskIndex + 2))" depends:"$idTask" + task add "${annotations[$taskIndex]}" project:"$projectName" order:"$((taskIndex + 2))" depends:"$idTask" +current idTask=$(getLatestTaskId) done |
