0.2.5 initial commit

Makefile incomplete
This commit is contained in:
Aiden McClelland
2020-11-23 13:44:28 -07:00
commit 95d3845906
503 changed files with 53448 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
module Lib.ProductKey where
import Startlude
import Protolude.Unsafe ( unsafeHead )
import System.FilePath
productKeyPath :: FilePath -> FilePath
productKeyPath rt = rt </> "root/agent/product_key"
getProductKey :: Text -> IO Text
getProductKey rt = unsafeHead . lines <$> readFile (productKeyPath $ toS rt)