actions

package
v0.0.0-...-4859aca Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommentPatterns

func GetCommentPatterns() map[string]Config

TODO: Load from configuration GetCommentPatterns loads patterns for formatting the text before pushing into source code files.

func LicensePushCmd

func LicensePushCmd(cmd *cobra.Command, args []string)

func WriteFile

func WriteFile(filePath string, config Config, content string) error

Types

type Config

type Config struct {
	Extension  string
	Pattern    string
	AddTop     bool
	AddBottom  bool
	PrefixLine string
}

func (Config) GetReplacement

func (c Config) GetReplacement(replacement string) string

Jump to

Keyboard shortcuts

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