initial commit
This commit is contained in:
parent
5b1294d5ae
commit
616d834838
10 changed files with 99 additions and 0 deletions
14
project/src/docker_nim_dev_example.nim
Normal file
14
project/src/docker_nim_dev_example.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os, zip/zipfiles
|
||||
|
||||
# Hello Nim!
|
||||
echo "Hello, World!"
|
||||
|
||||
proc createZip(rootDir: string) =
|
||||
let filename = rootDir / "out.gz"
|
||||
var z: ZipArchive
|
||||
discard open(z, filename, fmWrite)
|
||||
for x in walkDirRec(rootDir):
|
||||
addFile(z, x, x)
|
||||
close z
|
||||
|
||||
createZip("../")
|
||||
Loading…
Add table
Add a link
Reference in a new issue