Skip to content

Commit

Permalink
Merge 0b4019f into 73c9453
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW authored May 6, 2022
2 parents 73c9453 + 0b4019f commit c5727f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions desc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package runn

const descSectionKey = "desc"
3 changes: 3 additions & 0 deletions if.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package runn

const ifSectionKey = "if"
2 changes: 1 addition & 1 deletion operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func New(opts ...Option) (*operator, error) {
}

for k, v := range bk.Runners {
if k == includeRunnerKey || k == testRunnerKey || k == dumpRunnerKey || k == execRunnerKey || k == bindRunnerKey {
if k == includeRunnerKey || k == testRunnerKey || k == dumpRunnerKey || k == execRunnerKey || k == bindRunnerKey || k == ifSectionKey || k == descSectionKey {
return nil, fmt.Errorf("runner name '%s' is reserved for built-in runner", k)
}
delete(bk.runnerErrs, k)
Expand Down

0 comments on commit c5727f9

Please sign in to comment.