Skip to content

Commit

Permalink
windows scheduler: add config file
Browse files Browse the repository at this point in the history
  • Loading branch information
creativeprojects committed Nov 13, 2024
1 parent 3e80450 commit d3654ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schedule/handler_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ func (h *HandlerWindows) Scheduled(profileName string) ([]Config, error) {
configs := make([]Config, 0, len(tasks))
for _, task := range tasks {
if profileName == "" || task.ProfileName == profileName {
args := NewCommandArguments(shell.SplitArguments(task.Arguments))
configs = append(configs, Config{
ConfigFile: args.ConfigFile(),
ProfileName: task.ProfileName,
CommandName: task.CommandName,
Command: task.Command,
Arguments: NewCommandArguments(shell.SplitArguments(task.Arguments)),
Arguments: args,
WorkingDirectory: task.WorkingDirectory,
JobDescription: task.JobDescription,
})
Expand Down

0 comments on commit d3654ba

Please sign in to comment.