Skip to content

Commit 801d2e3

Browse files
authored
add new command field (#513)
* add new command field * set the correct command if not provided
1 parent 2d69088 commit 801d2e3

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎internal/infra/run.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func (p *RunParams) Validate() error {
9999
if p.Command == "" {
100100
p.Command = model.UpdateFilesCommand
101101
}
102+
p.Job.Command = string(p.Command)
102103
return nil
103104
}
104105

‎internal/model/job.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ reasons.
2828

2929
// Job is the data that is passed to the updater.
3030
type Job struct {
31+
Command string `json:"command" yaml:"command,omitempty"`
3132
PackageManager string `json:"package-manager" yaml:"package-manager"`
3233
AllowedUpdates []Allowed `json:"allowed-updates" yaml:"allowed-updates,omitempty"`
3334
Debug bool `json:"debug" yaml:"debug,omitempty"`

0 commit comments

Comments
 (0)