diff --git a/src/MiniDocs/MiniDocs.class.st b/src/MiniDocs/MiniDocs.class.st index 2d89922..4742b6f 100644 --- a/src/MiniDocs/MiniDocs.class.st +++ b/src/MiniDocs/MiniDocs.class.st @@ -109,3 +109,25 @@ MiniDocs class >> yamlToJsonBinary [ MiniDocs class >> yamlToJsonSourceCode [ ^ FileLocator image parent / 'pharo-local/iceberg/Offray/MiniDocs/src/yamlToJson.nim' ] + +{ #category : #accessing } +MiniDocs >> installNimFileExporter [ + | folder | + folder := (MiniDocs appFolder / 'scripts') ensureCreateDirectory. + + ZnClient new + url: 'https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/stringAsFileInto'; + downloadTo: folder / 'stringAsFileInto'. + + ZnClient new + url: 'https://mutabit.com/repos.fossil/mutabit/doc/trunk/wiki/scripts/stringAsFileInto.nim'; + downloadTo: folder / 'stringAsFileInto.nim'. + + OSSUnixSubprocess new + command: 'chmod'; + arguments: { '+x' . (folder / 'stringAsFileInto') fullName }; + workingDirectory: folder fullName; + redirectStdout; + redirectStderr; + runAndWaitOnExitDo: [ :process :outString | ^ outString ] +]