mirror of
https://github.com/nsomar/Swiftline.git
synced 2024-09-11 05:35:42 +03:00
20 lines
425 B
Swift
20 lines
425 B
Swift
#!/usr/bin/env xcrun swift -F ./Rome/ -framework Swiftline
|
|
|
|
import Swiftline
|
|
|
|
|
|
// print(Env.get("PWD")!)
|
|
print("All Environment Variables")
|
|
print(Env.keys.joinWithSeparator("\n"))
|
|
|
|
print("\nPrinting value of PWD")
|
|
print(Env.get("PWD")!)
|
|
|
|
print("\nPrint all Arguments")
|
|
print(Args.all)
|
|
|
|
print("\nPrint parsed Arguments")
|
|
print(Args.parsed.flags["target"]!)
|
|
print(Args.parsed.flags["framework"]!)
|
|
print(Args.parsed.parameters)
|