diff --git a/docs/cli.md b/docs/cli.md index 9d4988d..a27b609 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -74,11 +74,15 @@ specification_version = 1 code_generation = { languages = { - rust#1.70.0 = { package_versions=[all] } + rust#1.70.0 = {} } } ``` +The declared languages are a capability list only — a bare +`language#lang_version`. Which of them to generate, where, and for which package +versions is set in `comline.toml` (below). + The directory keeps the name you gave; the `congregation` name is that name reduced to a valid Comline identifier (letters, digits and `_`), so `comline new my-api` produces the directory `my-api/` with `congregation my_api`. diff --git a/src/commands/new.rs b/src/commands/new.rs index 103e9a9..f96159d 100644 --- a/src/commands/new.rs +++ b/src/commands/new.rs @@ -107,7 +107,7 @@ specification_version = 1 code_generation = {{ languages = {{ - rust#1.70.0 = {{ package_versions=[all] }} + rust#1.70.0 = {{}} }} }} " diff --git a/tests/fixtures/simple_project/config.idp b/tests/fixtures/simple_project/config.idp index 8f37bfd..052b109 100644 --- a/tests/fixtures/simple_project/config.idp +++ b/tests/fixtures/simple_project/config.idp @@ -3,6 +3,6 @@ specification_version = 1 code_generation = { languages = { - rust#1.70.0 = { package_versions=[all] } + rust#1.70.0 = {} } }