Added QueueWData and QueueWDataWait to cli. Added Once prop to cron (these will be removed upon execution)
This commit is contained in:
+6
-1
@@ -214,7 +214,11 @@ type Log struct {
|
||||
}
|
||||
|
||||
func (l *Log) Write(p []byte) (n int, err error) {
|
||||
os.Stdout.Write([]byte(fmt.Sprintf("- %s\n", string(p))))
|
||||
_, err = os.Stdout.Write([]byte(fmt.Sprintf("- %s\n", string(p))))
|
||||
if err != nil {
|
||||
println(fmt.Sprintf("Log.Write:: Error writing log: %s", err.Error()))
|
||||
return 0, err
|
||||
}
|
||||
l.AddHistory(string(p))
|
||||
return len(p), nil
|
||||
}
|
||||
@@ -311,6 +315,7 @@ type Cron struct {
|
||||
Enabled *bool `json:"enabled"`
|
||||
Data string `json:"data"`
|
||||
Comments string `json:"comments"`
|
||||
Once bool `json:"once"`
|
||||
}
|
||||
|
||||
//type Resource struct {
|
||||
|
||||
Reference in New Issue
Block a user