Created
November 3, 2019 13:01
-
-
Save enthus1ast/13f7efddce9ee192dfd21045056c6a2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import distros | |
import macros | |
macro whichOs(): untyped = | |
result = newStmtList() | |
for dist in Distribution: | |
result.add newCall("echo", newLit dist , newLit " ", newCall("detectOs", newIdentNode($dist))) | |
whichOs() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment