parent
cdfe8e6062
commit
f85131b80a
@ -0,0 +1,11 @@ |
||||
package main |
||||
|
||||
import "fmt" |
||||
|
||||
// Run will take the config file and for each task, run a go routine
|
||||
func TaskRun(c Config) { |
||||
for i, v := range c.Tasks { |
||||
fmt.Printf("%d, %s", i, v) |
||||
} |
||||
|
||||
} |
@ -0,0 +1,20 @@ |
||||
{ |
||||
"Tasks": |
||||
[ |
||||
{ |
||||
"taskname": "Example Task", |
||||
"taskdesc": "This is placeholder", |
||||
"interval": -1, |
||||
"cmd": " ", |
||||
"icon": " " |
||||
}, |
||||
|
||||
{ |
||||
"taskname": "Second Example", |
||||
"taskdesc": "Still Place holder", |
||||
"interval": -1, |
||||
"cmd": " ", |
||||
"icon": " " |
||||
} |
||||
] |
||||
} |
Loading…
Reference in new issue