kurtosis-tech / kurtosis

A platform for packaging and launching ephemeral backend stacks with a focus on approachability for the average developer.
https://docs.kurtosistech.com/
Apache License 2.0
376 stars 53 forks source link

Calling packages is not intuitive from command line #858

Open victorcolombo opened 1 year ago

victorcolombo commented 1 year ago

Background & motivation

Currently to call a Starlark package you need to pass a JSON string that will populate args from run. This is highly cumbersome for several reasons:

  1. Requires writing a file to disk and executing a another command cat args.json
  2. If you pass the parameter directly, it is awkward to quote all strings correctly in the command line

Desired behaviour

Ideally we could have a more CLI-like interface for run, like:

kurtosis run . --arg1 a --arg2 0 instead of kurtosis run . '{"arg1": "a", "arg2": 0}'

How important is this to you?

Painful; the lack of this feature makes using Kurtosis frictionful.

mieubrisse commented 1 year ago

See potential solution to this here, made possible by the starlark type hints that we now have: https://github.com/kurtosis-tech/kurtosis/issues/1112#issuecomment-1717427329