Sitelet https://github.com/casey/just/issues/558
Skip to content

Dispatching variadic arguments to dependencies with splats #558

Description

@casey

It should be possible, when a variadic parameter receives multiple arguments, to call a dependency for each of those arguments:

This could look like:

foo *args: (bar *args)
@bar arg:
  echo bar: {{arg}}

Which would have the effect of, for each value in args, call bar with that value:

$ just a b c d
bar: a
bar: b
bar: c
bar: d

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions