You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bash has a command called seq that takes a number and returns a sequence of numbers up to and including that number, starting from 1.
You can also define the intervals using two additional (optional) arguments: seq $BEGIN $INTERVAL $END. For example, seq 0 1 3 would return the list 0 1 2 3, whereas seq 0 2 10 would return 0 2 4 6 8 10.
I think a function that performs similar to seq would be a great enhancement to sprig, as one could use it in templates via the following:
Just wanted to let you know I've started work on this feature.
So far I think it works pretty well but the code is not nice, not used to programming so heavily to interfaces. So I'll try improve before opening a PR.
bash has a command called
seq
that takes a number and returns a sequence of numbers up to and including that number, starting from 1.You can also define the intervals using two additional (optional) arguments:
seq $BEGIN $INTERVAL $END
. For example,seq 0 1 3
would return the list0 1 2 3
, whereasseq 0 2 10
would return0 2 4 6 8 10
.I think a function that performs similar to
seq
would be a great enhancement to sprig, as one could use it in templates via the following:Docs for
seq
can be found here: http://tldp.org/LDP/abs/html/extmisc.htmlFor the time being, you can use
list 1 2 3
to achieve the same effect.ref: helm/helm#4876
The text was updated successfully, but these errors were encountered: