Skip to content

Commit

Permalink
Module yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Lack30 committed Apr 12, 2024
1 parent 6e6ecf5 commit c3a4962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func validateScript(c *Command, dir string) error {
}

type Module struct {
Command `yaml:",inline"`
Dir string `yaml:"dir"`
Command `json:",inline" yaml:",inline"`
Dir string `json:"dir,omitempty" yaml:"dir,omitempty"`
}

func (m *Module) Execute(args ...string) (*Command, error) {
Expand Down

0 comments on commit c3a4962

Please sign in to comment.