-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
carvel triageThis issue has not yet been triaged for relevanceThis issue has not yet been triaged for relevancestaleThis issue has had no activity for a while and will be closed soonThis issue has had no activity for a while and will be closed soon
Description
Question
Is it possible to split function calls across multiple lines for readability? I can't seem to figure it out.
Explanation
The below works:
#@ def some_list(a,b,c):
- #@ a
- #@ b
- #@ c
#@ end
--- #@ some_list("this is a long line", "i'd rather split this", "how do I do it?")
But this does not:
#@ def some_list(a,b,c):
- #@ a
- #@ b
- #@ c
#@ end
--- #@ some_list(
#@ "this is a long line",
#@ "i'd rather split this",
#@ "how do I do it?"
#@ )
Error:
- got string literal, want ','
def.yml:8 | #@ "this is a long line",
Workaround
#@ def some_list(a,b,c):
- #@ a
- #@ b
- #@ c
#@ end
#@ some_list_args = [
#@ "this is a long line",
#@ "i'd rather split this",
#@ "how do I do it?"
#@ ]
--- #@ some_list(*some_list_args)
Metadata
Metadata
Assignees
Labels
carvel triageThis issue has not yet been triaged for relevanceThis issue has not yet been triaged for relevancestaleThis issue has had no activity for a while and will be closed soonThis issue has had no activity for a while and will be closed soon
Type
Projects
Status
No status