state

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalTasks = map[string]ConfigurableTool{
	"pre-commit": {
		Name:        "pre-commit",
		Description: "create .pre-commit-config.yaml file with pre",
		Configs: []SourceToDest{
			{
				TemplateSource:    "templates/pre-commit-config.yaml.tmpl",
				ConfigDestination: "./.pre-commit-config.yaml",
			},
		},
	},
	"mkdocs": {
		Name:        "mkdocs",
		Description: "create the configuration file and directory structure for mkdocs framework",
	},
}
View Source
var Platforms = map[string]ConfigurableTool{
	"github": {
		Name: "GitHub",
		DirectoryStructure: []string{
			".github/workflows",
		},
	},
}
View Source
var Tasks = map[string]ConfigurableTool{
	"golangci-lint": {
		Name: "golangci-lint",
		Configs: []SourceToDest{
			{
				TemplateSource:    "templates/github/golangci-lint.yaml.tmpl",
				ConfigDestination: ".github/workflows/golangci-lint.yaml",
			},
			{
				TemplateSource:    "templates/golangci.yaml.tmpl",
				ConfigDestination: "./.golangci.yaml",
			},
		},
	},
	"commitlint": {
		Name:        "commitlint",
		Description: "automatically check whether commits pushed are compatible with conventional commits standard",
		Configs: []SourceToDest{
			{
				TemplateSource:    "templates/github/commitlint.yaml.tmpl",
				ConfigDestination: ".github/workflows/commitlint.yaml",
			},
		},
	},
	"goreleaser": {
		Name:        "goreleaser",
		Description: "automatically release binaries of your application ",
		Configs: []SourceToDest{
			{

				TemplateSource:    "templates/github/release.yaml.tmpl",
				ConfigDestination: ".github/workflows/release.yaml",
			},
			{

				TemplateSource:    "templates/goreleaser.yaml.tmpl",
				ConfigDestination: "./.goreleaser.yaml",
			},
			{

				ConfigDestination: "./CHANGELOG.md",
			},
		},
	},
	"dependabot": {
		Name: "dependabot",
		Configs: []SourceToDest{
			{
				TemplateSource:    "templates/github/dependabot.yaml.tmpl",
				ConfigDestination: ".github/dependabot.yaml",
			},
		},
	},
}

Functions

This section is empty.

Types

type ConfigurableTool

type ConfigurableTool struct {
	Name               string
	Description        string // TODO: update the wizard to show descriptions of the tools
	DirectoryStructure []string
	Configs            []SourceToDest
}

type SourceToDest

type SourceToDest struct {
	//! config destination will depend on the cicd platform
	TemplateSource    string
	ConfigDestination string
}

Jump to

Keyboard shortcuts

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