jet icon indicating copy to clipboard operation
jet copied to clipboard

Pipe command type string is not func

Open StephanSchmidt opened this issue 2 years ago • 0 comments

When I do this

... | money("$") | ....

I get

pipe command "money(\"$\")" type string is not func

with

.AddGlobalFunc("money", func(a jet.Arguments) reflect.Value { a.RequireNumOfArguments("money", 1, 2)

Is there an example on how to do this?

The builtin "repeat(2)" is doing this for example.

StephanSchmidt avatar Dec 27 '22 16:12 StephanSchmidt