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
353 stars 52 forks source link

Allow to use yaml files as args-file #1600

Closed barnabasbusa closed 11 months ago

barnabasbusa commented 11 months ago

Background & motivation

It would be great to be able to use YAML files as well as JSON when passing a arg file to kurtosis.

Desired behaviour

While this is cool:

{
  "participants": [
      {
        "el_client_type": "geth",
        "cl_client_type": "lodestar",
        "count": 3
      }
  ],
  "network_params": {
      "deneb_fork_epoch": 3,
      "seconds_per_slot": 3,
      "genesis_delay": 300
  },
  "additional_services": [
      "el_forkmon",
      "dora"
  ],
  "snooper_enabled": true
}

I think this would be even nicer:

participants:
  - el_client_type: geth
    cl_client_type: lodestar
    count: 3
  - el_client_type: nethermind
    cl_client_type: lodestar
    count: 3
network_params: 
  deneb_fork_epoch: 3
  seconds_per_slot: 3
  genesis_delay: 300
additional_services:
  - el_forkmon
  - dora
snooper_enabled: true

How important is this to you?

Nice to have; this feature would make using Kurtosis more enjoyable.

What area of the product does this pertain to?

CLI: the Command Line Interface

h4ck3rk3y commented 11 months ago

This should work already!

kurtosis run . --args-file foo.yml

Tested on 0.84.9