template

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedTemplates = map[string]Config{
	"ansible": {
		SourcePath: "/etc/ansible/ansible.cfg",
		OutputName: "ansible.cfg",
	},
	"markdownlint": {
		SourcePath: ".config/markdownlint/config",
		OutputName: ".markdownlint.json",
	},
	"ruff": {
		SourcePath: ".config/ruff/ruff.toml",
		OutputName: ".ruff.toml",
	},
	"yamllint": {
		SourcePath: ".config/yamllint/config",
		OutputName: ".yamllint",
	},
}

Functions

func ApplyTemplate

func ApplyTemplate(name, targetPath string, force bool) error

func GetTemplateNames

func GetTemplateNames() []string

func ShowTemplate

func ShowTemplate(name string, local bool) (string, error)

Types

type Config

type Config struct {
	SourcePath string
	OutputName string
}

func GetTemplate

func GetTemplate(name string) (Config, bool)

Jump to

Keyboard shortcuts

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