feat: add hostname module (#286)

Add a hostname module as requested by @chipbuster.
Displays the system hostname as provided by gethostname.
This commit is contained in:
Andrew Houts
2019-09-04 10:03:31 -07:00
committed by Matan Kushner
parent 5a0f269d85
commit 84688e4981
8 changed files with 198 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ battery = { version = "0.7.4", optional = true }
lazy_static = "1.4.0"
path-slash = "0.1.1"
unicode-segmentation = "1.3.0"
gethostname = "0.2.0"
[dev-dependencies]
tempfile = "3.1.0"