@@ -78,28 +78,18 @@ def generate(
78
78
api_definitions_path : str ,
79
79
):
80
80
"""
81
- Compare baseline generation config and current generation config and
82
- generate changed libraries based on current generation config.
81
+ Generate libraries based on a generation config.
83
82
84
- If baseline generation config is not specified but current generation
85
- config is specified, generate all libraries if `library_names` is not
86
- specified, based on current generation config.
87
-
88
- If current generation config is not specified but baseline generation
89
- config is specified, raise FileNotFoundError because current generation
90
- config should be the source of truth of library generation.
91
-
92
- If both baseline generation config and current generation config are not
93
- specified, generate all libraries based on the default generation config,
94
- which is generation_config.yaml in the current working directory.
83
+ If the `generation-config-path` is not specified the default generation
84
+ config, `$(pwd)/generation_config.yaml`, will be used.
95
85
96
86
If `library_names` is specified, only libraries whose name can be found in
97
- the current generation config or default generation config, if current
98
- generation config is not specified, will be generated. Changed libraries
99
- will be ignored even if baseline and current generation config are
100
- specified.
87
+ the generation config will be generated; otherwise all libraries in the
88
+ generation config will be generated.
101
89
102
- Raise FileNotFoundError if the default config does not exist.
90
+ :raise FileNotFoundError if the specified generation config does not exist
91
+ or, in case `generation-config-path` is not specified, the default
92
+ generation config does not exist.
103
93
"""
104
94
__generate_repo_impl (
105
95
generation_config_path = generation_config_path ,
0 commit comments