The rule list & get commands panic with more than 3 tasks
The CLI commands rule list
& rule get
panic if a rule has more than 3 tasks in the same chain.
This is due to the re-usage of the variable i
for the indexes of both the chains and the tasks.
This can lead to an "index out of range" panic if the number of tasks is greater than the number of chains (so 3).