modify

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReplaceAction        = "replace"
	InsertBeforeAction   = "insert-before"
	InsertAfterAction    = "insert-after"
	ReplaceBetweenAction = "replace-between"
)
View Source
var (
	FilePath string

	VariablesFile string

	TemplateFile string

	TemplateVariables map[string]interface{}

	CodeMark string

	Action string
)
View Source
var ModifyCmd = &cobra.Command{
	Use:   "modify",
	Short: "Modify a scaffold for a project based on Go Templates",
	Run: func(cmd *cobra.Command, args []string) {
		Modify()
	},
}

Functions

func HandleAction

func HandleAction(action string, fileContent string, templateContent string, codeMark string) string

func Modify

func Modify()

Types

This section is empty.

Jump to

Keyboard shortcuts

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