wip: feat(task): defined concrete type for user group

wip: feat(version): added placeholder file + update gitignore
wip: chore: removed unnecessary files
This commit is contained in:
2024-01-11 13:13:33 +11:00
parent cdc66a2c22
commit 1926598c0f
10 changed files with 45 additions and 30 deletions
+2 -4
View File
@@ -68,12 +68,11 @@ func (cms *CronMultiOccurrenceSpec) Match(u uint8) bool {
type CronTask struct {
CronSchedule
userGroup
name string
command []string
environ []string
setsid bool
user string
group string
workingDir string
lastRun time.Time
hasRun bool //NOTE: make sure initialised as false
@@ -144,8 +143,7 @@ func (c *CronTask) Setsid() bool {
}
func (c *CronTask) UserGroup() wminit.UserGroup {
panic("not implemented")
return nil
return &(c.userGroup)
}
func (c *CronTask) WorkingDir() string {