summary refs log tree commit diff stats
path: root/tests/compile/twalker.nim
blob: 89e6c2b9d54c329f37336fb8f7b87729cfb7de7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# iterate over all files with a given filter:

import
  "../../lib/pure/os.nim", ../../ lib / pure / times

proc main(filter: string) =
  for filename in walkFiles(filter):
    writeln(stdout, filename)

  for key, val in envPairs():
    writeln(stdout, key & '=' & val)

main("*.nim")