sidekick

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package sidekick provides functionality for automating code generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

Run is the entry point for the sidekick logic. It expects args to be the command line arguments, minus the program name.

Types

type CargoConfig

type CargoConfig struct {
	Package CargoPackage // `toml:"package"`
}

CargoConfig is the configuration for a cargo package.

type CargoPackage

type CargoPackage struct {
	Name string // `toml:"name"`
}

CargoPackage is a cargo package.

type CommandLine

type CommandLine struct {
	Command             []string
	ProjectRoot         string
	SpecificationFormat string
	SpecificationSource string
	ServiceConfig       string
	Source              map[string]string
	Output              string
	Language            string
	Codec               map[string]string
	UpdatedRoot         string
	DryRun              bool
}

CommandLine Represents the arguments received from the command line.

Directories

Path Synopsis
internal
api
config
Package config provides functionality for working with the sidekick.toml configuration file.
Package config provides functionality for working with the sidekick.toml configuration file.
external
Package external provides helper functions to work with external commands.
Package external provides helper functions to work with external commands.
parser
Package parser reads specifications and converts them into the `genclient.API` model.
Package parser reads specifications and converts them into the `genclient.API` model.
parser/svcconfig
serviceconfig contains helper functions to parse service config files.
serviceconfig contains helper functions to parse service config files.
sample
Package sample provides sample data for testing.
Package sample provides sample data for testing.

Jump to

Keyboard shortcuts

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