utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DescriptionM2         = `Update '~/.m2/settings.xml'`
	DescriptionPreSDK     = `Update 'pom.xml'`
	DescriptionSDK        = `Update 'target/sdk/pom.xml'`
	DescriptionHibernate  = `Finds and updates 'hibernate.cfg.xml'`
	DescriptionProperties = `` /* 172-byte string literal not displayed */

	ArgFilePath  = `properties path`
	ArgEnvPrefix = `Environment variable prefix`
)

Descriptions of commands

Variables

This section is empty.

Functions

func DoConfigureHibernate

func DoConfigureHibernate()

DoConfigureHibernate compiles settings.xml template and overrides file

func DoConfigureM2

func DoConfigureM2()

DoConfigureM2 compiles settings.xml template and overrides file

func DoConfigurePreSDK added in v1.1.5

func DoConfigurePreSDK()

DoConfigurePreSDK updates sdk endpoint in pom.xml

func DoConfigureProperties

func DoConfigureProperties(filePathPre string, prefix string)

DoConfigureProperties updates properties file

func DoConfigureSDK

func DoConfigureSDK()

DoConfigureSDK compiles settings.xml template and overrides file

func LookupEnv

func LookupEnv(key string, fallback string) string

LookupEnv reads environment variable but with fallback support

func Read added in v1.1.0

func Read(fileName, keyPrefix string) (map[string]string, error)

Read source https://github.com/is73/cfg modified to use `=` for split

Types

This section is empty.

Jump to

Keyboard shortcuts

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