cli

package
v1.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

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/asterikx/sqlc/pkg/cli"
)

func main() {
    os.Exit(sqlc.Run(os.Args[1:]))
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Run the sqlc CLI. It takes an array of command-line arguments (excluding the executable argument itself) and returns an exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL