Skip to content

Commit d446b81

Browse files
authored
Exportable Run function
Closes #416
1 parent a94163b commit d446b81

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

placeholder.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
package sqlc
22

3+
import (
4+
"io"
5+
6+
"github.com/kyleconroy/sqlc/internal/cmd"
7+
)
8+
39
// This is a dummy file that allows SQLC to be "installed" as a module and locked using
410
// go.mod and then run using "go run github.com/kyleconroy/sqlc"
511

612
type Placeholder struct{}
13+
14+
// Run the sqlc command
15+
func Run(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) int {
16+
return cmd.Do(args, stdin, stdout, stderr)
17+
}

0 commit comments

Comments
 (0)