Skip to content

Commit 1eef2ce

Browse files
authored
Revert change that added default paths (#95)
* Revert change that added default paths This inadvertantly caused all languages to be generated (because their path being set implies so) * Add changelog
1 parent b298030 commit 1eef2ce

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
CHANGELOG
22
=========
33

4-
## 1.2.1 (2022-06-16)
4+
## 1.2.2 (2022-07-20)
5+
- Fix regression that caused code in all languages to be generated regardless of selection.
6+
7+
## 1.2.1 (2022-07-19)
58
This release is a refactor with no user-affecting changes.
69
- Create public interface for codegen in the `pkg/codegen` namespace
710
while placing internal utilities under `internal/`

cmd/root.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ func Execute() error {
122122
f.StringVarP(&nodejsSettings.PackageName, "nodejsName", "", codegen.DefaultName, "name of generated NodeJS package")
123123
f.StringVarP(&pythonSettings.PackageName, "pythonName", "", codegen.DefaultName, "name of generated Python paclkage")
124124

125-
f.StringVarP(&dotNetSettings.OutputDir, "dotnetPath", "", "crds/dotnet", "optional .NET output dir")
126-
f.StringVarP(&goSettings.OutputDir, "goPath", "", "crds/go", "optional Go output dir")
127-
f.StringVarP(&nodejsSettings.OutputDir, "nodejsPath", "", "crds/nodejs", "optional NodeJS output dir")
128-
f.StringVarP(&pythonSettings.OutputDir, "pythonPath", "", "crds/python", "optional Python output dir")
125+
f.StringVarP(&dotNetSettings.OutputDir, "dotnetPath", "", "", "optional .NET output dir")
126+
f.StringVarP(&goSettings.OutputDir, "goPath", "", "", "optional Go output dir")
127+
f.StringVarP(&nodejsSettings.OutputDir, "nodejsPath", "", "", "optional NodeJS output dir")
128+
f.StringVarP(&pythonSettings.OutputDir, "pythonPath", "", "", "optional Python output dir")
129129

130130
f.BoolVarP(&dotNetSettings.ShouldGenerate, "dotnet", "d", false, "generate .NET")
131131
f.BoolVarP(&goSettings.ShouldGenerate, "go", "g", false, "generate Go")

0 commit comments

Comments
 (0)