Last active
February 29, 2024 15:00
-
-
Save ikenna/d830d95d7a7c12dbd9f3 to your computer and use it in GitHub Desktop.
SBT print system properties and env proprties
This file contains hidden or 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
sbt> eval new scala.sys.SystemProperties().foreach(x => println(x)) | |
sbt> eval scala.sys.env.foreach(x => println(x)) |
Same!
If you want them sorted:
eval scala.sys.env.toList.sortBy(_._1).foreach(x => println(x))
You are welcome!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist just made my day <3 Thanks!