Is it possible to capture all the arguments and pass it to another function?
To make code like that shorter:
function send_binary(;
binary_hash::String,
binary::String
)::Any
post_json(
"http://localhost:$(port)/v1/binaries",
json((binary_hash=binary_hash, binary=binary))
)
end
(theoretical) Shorter version:
function send_binary(;
binary_hash::String,
binary::String
)::Any
post_json("http://localhost:$(port)/v1/binaries", json(arguments))
end