shared

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FilesPath       string = ".mr-smith"
	RunsPath        string = FilesPath + "/runs"
	ModulesFileName        = "mr-modules.yaml"
	ConfigFileName         = "mr-config.yaml"
	GitHubURL              = "https://github.com"

	Run    string
	Module string
)
View Source
var Modules = map[string]domain.Template{
	"mr-smith-org/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"},
	),
	"mr-smith-org/hello-world": domain.NewTemplate(
		"Hello World",
		"A simple Hello World in Go!",
		[]string{"golang", "example"},
	),
	"mr-smith-org/changelog-generator": domain.NewTemplate(
		"Changelog Generator",
		"Helper to write a good changelog to your project",
		[]string{"changelog", "helper", "markdown"},
	),
	"mr-smith-org/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