Nim file exporter as a core utility belonging to MiniDocs.
This commit is contained in:
parent
f0c0a537a0
commit
726d2950b7
@ -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 ]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user