Skip to content

Commit

Permalink
Files
Browse files Browse the repository at this point in the history
  • Loading branch information
sbragagnolo committed Jan 21, 2019
1 parent d181a73 commit 8590fcb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 27 deletions.
24 changes: 12 additions & 12 deletions examples/download.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env scale
| version |

version := (system optionAt: #v ifAbsent: [ 70 ]) asInteger.
system stdout
<< 'Downloading '
<< version asString
<< ' into: '
<< system pwd fullName
; flush.

system loadPharo: version into: system pwd.
#!/usr/bin/env scale
| version |

version := (system optionAt: #v ifAbsent: [ 70 ]) asInteger.
system stdout
<< 'Downloading '
<< version asString
<< ' into: '
<< system pwd fullName
; flush.

system loadPharo: version into: system pwd.
23 changes: 8 additions & 15 deletions examples/pwd.st
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
#!/usr/bin/env scale

| locator path |

path := (FileLocator home) path.


"system stdout << (OSEnvironment current at: 'PWD'); cr."

system stdout << (system pwd fullName); cr.
system stdout << (FileSystem disk workingDirectory fullName); cr.
system stdout << ((system home / '.config') fullName); cr.


system stdout << (system class selectors joinUsing: '\r\n')
#!/usr/bin/env scale
| locator path |
path := (FileLocator home) path.
"system stdout << (OSEnvironment current at: 'PWD'); cr."
system stdout << (system pwd fullName); cr.
system stdout << (FileSystem disk workingDirectory fullName); cr.
system stdout << ((system home / '.config') fullName); cr.
system stdout << (system class selectors joinUsing: '\r\n')

0 comments on commit 8590fcb

Please sign in to comment.