Accurately read/write non-ASCII param identifiers
Currently, if we run `param set guestbook-ui foo-bar x`,
The jsonnet snippet will write: `foo-bar: "x"`.
However, this is incorrect jsonnet syntax. This commit will fix this
issue, to instead write `"foo-bar": "x"`.
Also updates the `Get...` Param functions to return non-quoted
identifiers for prettier display.
Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
Showing
- cmd/root.go 1 addition, 3 deletionscmd/root.go
- metadata/params/params.go 15 additions, 22 deletionsmetadata/params/params.go
- metadata/params/params_test.go 60 additions, 4 deletionsmetadata/params/params_test.go
- utils/strings.go 10 additions, 0 deletionsutils/strings.go
- utils/strings_test.go 31 additions, 0 deletionsutils/strings_test.go
Please register or sign in to comment