Skip to content

Instantly share code, notes, and snippets.

@weakpixel
Created March 31, 2022 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weakpixel/dda3ae63a673c371183a56401b4f5d2f to your computer and use it in GitHub Desktop.
Save weakpixel/dda3ae63a673c371183a56401b4f5d2f to your computer and use it in GitHub Desktop.
type Config struct {
Tasks []*Task `hcl:"task,block"`
}
type Task struct {
Name string `hcl:"name,label"`
Steps []*ExecStep `hcl:"exec,block"`
}
type ExecStep struct {
Name string `hcl:"name,label"`
Command string `hcl:"command"`
}
func (s *ExecStep) Run() error {
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment