Skip to content

Commit

Permalink
document CreateRun
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 19, 2023
1 parent 9cfea59 commit ec4303d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ type RunConfig struct {
WorkspaceID string
}

// CreateRun creates a Run, which starts a Plan, which can later be Applied.
// https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run
func CreateRun(config RunConfig) error {
u := NewTfcUrl("/runs")
payload := buildRunPayload(config.Message, config.WorkspaceID)
Expand Down

0 comments on commit ec4303d

Please sign in to comment.