Browse Source

Final touches for PoC

Simon Watson 5 months ago
parent
commit
4372ee82e8
2 changed files with 8 additions and 2 deletions
  1. 6 0
      README.md
  2. 2 2
      pest.go

+ 6 - 0
README.md

@@ -0,0 +1,6 @@
+# go-pest
+
+Toy PS1 generator program. 
+
+Port of: https://git.spwbk.site/swatson/cl-pest
+for the sake of learning a bit of Go.

+ 2 - 2
pest.go

@@ -210,11 +210,11 @@ func assemble_prompt(config *PestConfig) {
 
 func main() {
 
-	toml, err := parseTomlFromFile("/home/swatson/Repos/go-pest/pest.cfg")
+	parsed_config, err := parseTomlFromFile("/home/swatson/Repos/go-pest/pest.cfg")
 	if err != nil {
 		fmt.Println("Couldn't parse TOML const!")
 	}
 
-	assemble_prompt(&toml)
+	assemble_prompt(&parsed_config)
 
 }