Bugfix.
This commit is contained in:
parent
3a6ab2a241
commit
beb3e79c2a
@ -41,7 +41,7 @@ YQ class >> install [
|
|||||||
YQ class >> jsonToYaml: aDictionary [
|
YQ class >> jsonToYaml: aDictionary [
|
||||||
| jsonFile |
|
| jsonFile |
|
||||||
self binaryFile exists ifFalse: [ YQ install].
|
self binaryFile exists ifFalse: [ YQ install].
|
||||||
jsonFile := MarkupFile exportAsFileOn: FileLocator temp / 'data.json' containing: aDictionary.
|
jsonFile := MarkupFile exportAsFileOn: FileLocator temp / 'data.json' containing: (NeoJSONWriter toStringPretty: aDictionary).
|
||||||
Smalltalk os isWindows
|
Smalltalk os isWindows
|
||||||
ifTrue: [ ^ LibC resultOfCommand: 'yq -p=json ', jsonFile fullName ].
|
ifTrue: [ ^ LibC resultOfCommand: 'yq -p=json ', jsonFile fullName ].
|
||||||
^ GtSubprocessWithInMemoryOutput new
|
^ GtSubprocessWithInMemoryOutput new
|
||||||
|
Loading…
Reference in New Issue
Block a user