forked from EvergreenCrypto/docker-finance
container: plugins: finance: timew_to_timeclock: print all tags
This commit is contained in:
@@ -100,12 +100,24 @@ function main()
|
|||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
# All others are considered "real" tags
|
# All others are considered "real" tags
|
||||||
tags=substr($0, 5)
|
tag=substr($0, 5)
|
||||||
sub(/=/, ":", tags) # Reconstruct to hledger tag format
|
|
||||||
# TODO: push to an array for more tags
|
# Reconstruct to hledger tag format
|
||||||
|
sub(/=/, ":", tag)
|
||||||
|
tags[tag]=tag ", "
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
} END { printf " " account " " description " ; " comment ", id:" _id ", " tags "\n"}'
|
}
|
||||||
|
END {
|
||||||
|
printf " " account " " description " ; " comment ", id:" _id ", "
|
||||||
|
for (t in tags)
|
||||||
|
{
|
||||||
|
i++
|
||||||
|
printf t ", "
|
||||||
|
}
|
||||||
|
printf "\n"
|
||||||
|
}'
|
||||||
__format_time "o" "$_end"
|
__format_time "o" "$_end"
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user