Skip to content

Commit 0abdecc

Browse files
Move CLI generation templates to universe (#3288)
## Changes The templates are being added to universe in PR number: #1197781 ## Why Co-versioning the templates with genkit allows us to catch regressions early. ## Tests Manually. The generated CLI code remains identical after this change.
1 parent 6101204 commit 0abdecc

File tree

4 files changed

+1
-499
lines changed

4 files changed

+1
-499
lines changed

.codegen.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
{
2-
"mode": "cli_legacy",
2+
"mode": "cli_v0",
33
"api_changelog": true,
44
"formatter": "go run golang.org/x/tools/cmd/goimports@latest -w $FILENAMES && go fmt ./...",
5-
"services": {
6-
".codegen/service.go.tmpl": "cmd/{{if .IsAccounts}}account{{else}}workspace{{end}}/{{(.TrimPrefix \"account\").KebabName}}/{{(.TrimPrefix \"account\").KebabName}}.go"
7-
},
8-
"batch": {
9-
".codegen/cmds-workspace.go.tmpl": "cmd/workspace/cmd.go",
10-
".codegen/cmds-account.go.tmpl": "cmd/account/cmd.go"
11-
},
125
"version": {
136
"experimental/python/README.md": "version $VERSION or above",
147
"experimental/python/databricks/bundles/version.py": "__version__ = \"$VERSION\"",

.codegen/cmds-account.go.tmpl

Lines changed: 0 additions & 31 deletions
This file was deleted.

.codegen/cmds-workspace.go.tmpl

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)