aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_parse.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-31 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-31 20:20:20 +0100
commit8058a551ee80f0cb519012b900cac2dba669df34 (patch)
treea916fca198401c4baa3595fe661797078322d98e /src/c_parse.go
parentfuck ye gpg done (diff)
downloadhardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.gz
hardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.bz2
hardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.xz
hardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.zst
hardflip-8058a551ee80f0cb519012b900cac2dba669df34.zip
useless changes
Diffstat (limited to 'src/c_parse.go')
-rw-r--r--src/c_parse.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/c_parse.go b/src/c_parse.go
index faa8223..53249cf 100644
--- a/src/c_parse.go
+++ b/src/c_parse.go
@@ -58,6 +58,17 @@ import (
"gopkg.in/yaml.v3"
)
+func c_parse_opts(file string) (HardOpts, error) {
+ var opts HardOpts
+
+ yaml_file, err := os.ReadFile(file)
+ if err != nil {
+ return opts, err
+ }
+ err = yaml.Unmarshal(yaml_file, opts)
+ return opts, err
+}
+
func c_read_yaml_file(file string, ui *HardUI) (*HostNode, error) {
var host HostNode
yaml_file, err := os.ReadFile(file)