prompt

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose = false

Verbose determines if we should print more stuff

Functions

func ProcessForTarget

func ProcessForTarget(targetDirectory string, getUserInput func(match string, description string) string)

ProcessForTarget searches the target directory for .new.yml and processes it

Types

type NewConfig

type NewConfig struct {
	Replace Replace `yaml:"replace"`
}

NewConfig represents the whole config file

type Replace

type Replace struct {
	Strings []ReplacementString `yaml:"strings"`
}

Replace is the replacement object

type ReplacementString

type ReplacementString struct {
	Match       string `yaml:"match"`
	Description string `yaml:"description"`
}

ReplacementString represents a string configuration

Jump to

Keyboard shortcuts

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