feat(refacto): move everything in internal package
This allows to install katenary with `go install` and to clean up the project folder.
This commit is contained in:
20
internal/generator/globals.go
Normal file
20
internal/generator/globals.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package generator
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
"github.com/katenary/katenary/internal/generator/labels"
|
||||
)
|
||||
|
||||
var (
|
||||
// find all labels starting by __replace_ and ending with ":"
|
||||
// and get the value between the quotes
|
||||
// ?s => multiline
|
||||
// (?P<inc>.+?) => named capture group to "inc" variable (so we could use $inc in the replace)
|
||||
replaceLabelRegexp = regexp.MustCompile(`(?s)__replace_.+?: '(?P<inc>.+?)'`)
|
||||
|
||||
// Standard annotationss
|
||||
Annotations = map[string]string{
|
||||
labels.LabelName("version"): Version,
|
||||
}
|
||||
)
|
Reference in New Issue
Block a user