daml/daml-assistant/daml-helper
Sofia Faro 8b05a533ce
Refactor daml start options, add true/false to yes/no/auto flags. (#12169)
* Refactor daml start & add true/false to yesNoAuto.

- Refactor the way we pass arguments to daml start. We were relying on
  positional arguments with newtypes, but this is super cumbersome. I
  changed it to a RecordWildCards-style approach, where we don't need
  quite so many newtypes, and no more positional arguments.

- "--start-navigator" flag had some custom logic to accept "true" and
  "false". I don't see why we can't just accept "true" and "false"
  anywhere we use the "yes/no/auto" flags, so I just changed that and
  got rid of the custom logic.

- The way "auto" was handled for this flag was incorrect, since "auto"
  is supposed to be equivalent the default, i.e. not passing any
  flag. I changed it so auto is equivalent to not passing an argument.
  (I.e. it looks in daml.yaml for the start-navigator option).

changelog_begin
changelog_end

* dont pass in shutdownStdinClose to runStart
2021-12-16 14:40:36 +00:00
..
src/DA/Daml/Helper Refactor daml start options, add true/false to yes/no/auto flags. (#12169) 2021-12-16 14:40:36 +00:00
test/DA/Daml/Helper/Test Reuse sandbox & JSON API across daml ledger tests (#11214) 2021-10-13 11:19:44 +02:00
test-data update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
BUILD.bazel Bump resources for daml-ledger tests (#10984) 2021-09-22 13:11:14 +00:00