Skip to content

Commit 3d750cd

Browse files
authored
feat(tool/cmd/migrate): migrate Dart library level configuration to librarian configuration (#3765)
Migrate Dart library configuration to librarian configuration. We use this migration tool to generate a librarian configuration in google-cloud-dart. There maybe some edge cases and we may need to adjust the library configuration accordingly, follow up PRs will resolve library generation issues. For #3580
1 parent 62289b9 commit 3d750cd

File tree

30 files changed

+414
-952
lines changed

30 files changed

+414
-952
lines changed

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ type Library struct {
194194
// overrides Default.Transport.
195195
Transport string `yaml:"transport,omitempty"`
196196

197-
// Veneer indicates this library has hand-written code. A veneer may
197+
// Veneer indicates this library has handwritten code. A veneer may
198198
// contain generated libraries.
199199
Veneer bool `yaml:"veneer,omitempty"`
200200

internal/config/language.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ type DartPackage struct {
296296
// LibraryPathOverride overrides the library path.
297297
LibraryPathOverride string `yaml:"library_path_override,omitempty"`
298298

299+
// NameOverride overrides the package name
300+
NameOverride string `yaml:"name_override,omitempty"`
301+
299302
// NotForPublication indicates whether this package should not be published.
300303
NotForPublication string `yaml:"not_for_publication,omitempty"`
301304

@@ -322,4 +325,7 @@ type DartPackage struct {
322325

323326
// RepositoryURL is the URL to the repository for this package.
324327
RepositoryURL string `yaml:"repository_url,omitempty"`
328+
329+
// TitleOverride overrides the API title.
330+
TitleOverride string `yaml:"title_override,omitempty"`
325331
}

0 commit comments

Comments
 (0)