filehandler

package
v1.0.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(src, dest, filename string) (ok bool, apply bool)

Handler represents a function to be executed on a specific file (with its source, destination and name).

It returns two booleans, the first one to indicate that the Handler is the right one for the inputs. The second one to indicate whether to apply something or not (apply something means doing whatever execution depending on apply value).

Handler is specifically used for optional handlers (to indicate whether to generate or remove optional files in craft generation).

func AllHandlers

func AllHandlers(config models.GenerateConfig) []Handler

AllHandlers returns the full slice of optional handlers to handle options during craft generation.

func Docker

func Docker(config models.GenerateConfig) Handler

Docker returns the handler for docker option generation matching.

func Github

func Github(config models.GenerateConfig) Handler

Github returns the handler for github option generation matching.

func Gitlab

func Gitlab(config models.GenerateConfig) Handler

Gitlab returns the handler for gitlab option generation matching.

func Goreleaser

func Goreleaser(config models.GenerateConfig) Handler

Goreleaser returns the handler for goreleaser option generation matching.

func Makefile

func Makefile(config models.GenerateConfig) Handler

Makefile returns the handler for makefile option generation matching.

func Releaserc

func Releaserc(config models.GenerateConfig) Handler

Releaserc returns the handler for releaserc option generation matching.

func Sonar

func Sonar(config models.GenerateConfig) Handler

Sonar returns the handler for sonar option generation matching.

Jump to

Keyboard shortcuts

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