13 lines
258 B
Nim
Executable file
13 lines
258 B
Nim
Executable file
# iterate over all files with a given filter:
|
|
|
|
import
|
|
os, times
|
|
|
|
proc main(filter: string) =
|
|
for filename in walkFiles(filter):
|
|
writeln(stdout, filename)
|
|
|
|
for key, val in envPairs():
|
|
writeln(stdout, key & '=' & val)
|
|
|
|
main("*.nim")
|