Created
July 15, 2020 18:15
-
-
Save Araq/551262b4ab33630a21b8cd65d944da81 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 strutils, os | |
type Target = tuple[repo, package, ext: string] | |
proc newTarget*(path: string): Target = | |
let splat = path.splitFile | |
result = (repo: splat.dir, package: splat.name, ext: splat.ext) | |
let mem = getOccupiedMem() | |
echo newTarget("meo") | |
echo "MEM IS ", getOccupiedMem() - mem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment