Created
March 31, 2022 17:34
-
-
Save weakpixel/dda3ae63a673c371183a56401b4f5d2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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