/
githubmirror
/
sqlc
Обзор
Документация
Войти
/
githubmirror
/
sqlc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/cli/cli.go
30 строк
631 B
Kyle Gray
chore: Finish migration to sqlc-dev/sqlc (#2548)
31 июл 2023, 18:21
Не верифицирован
31 июл 2023, 18:21
3b48228
Код
Авторство
О чём код?
// package cli exposes the command-line interface for sqlc. It can be used to // run sqlc from Go without the overhead of creating a child process. // // Example usage: // // package main // // import ( // "os" // // sqlc "github.com/sqlc-dev/sqlc/pkg/cli" // ) // // func main() { // os.Exit(sqlc.Run(os.Args[1:])) // } package cli import ( "os" "github.com/sqlc-dev/sqlc/internal/cmd" ) // Run the sqlc CLI. It takes an array of command-line arguments // (excluding the executable argument itself) and returns an exit // code. func Run(args []string) int { return cmd.Do(args, os.Stdin, os.Stdout, os.Stderr) }