shared

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubURL = "https://github.com"
)

Variables

View Source
var (
	KumaFilesPath string = ".kuma"

	KumaRunsPath string = KumaFilesPath + "/runs"

	OfficialTemplatesPath string = "official-templates.yaml"

	Run string

	Module string
)
View Source
var Modules = map[string]domain.Template{
	"kuma-framework/kuma-typescript-rest-services": domain.NewTemplate(
		"TypeScript Rest Services (OpenAPI 2.0)",
		"Create a library TypeScript with services typed for all endpoints described in a file Open API 2.0",
		[]string{"typescript", "openapi", "rest", "library"},
	),
	"kuma-framework/kuma-hello-world": domain.NewTemplate(
		"Hello World",
		"A simple Hello World in Go!",
		[]string{"golang", "example"},
	),
	"kuma-framework/kuma-changelog-generator": domain.NewTemplate(
		"Changelog Generator",
		"Helper to write a good changelog to your project",
		[]string{"changelog", "helper", "markdown"},
	),
	"kuma-framework/kuma-commit-standardizer": domain.NewTemplate(
		"Commit Standardizer",
		"Write conventional commits for your projects",
		[]string{"git", "standardizer"},
	),
}

Functions

func ReadFileFromURL

func ReadFileFromURL(url string) (string, error)

func RunCommand

func RunCommand(command string, args ...string) error

Types

type FormFieldHandler

type FormFieldHandler interface {
	Handle(data any, vars map[string]any) (huh.Field, string, any, error)
}

type Handler

type Handler interface {
	Handle(data any, vars map[string]any) error
}

Jump to

Keyboard shortcuts

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