Documentation
¶
Index ¶
- Variables
- type BuiltinProviders
- type MappingConfig
- type Porcelain
- func (p *Porcelain) AskForConfirmation(msg string) bool
- func (p *Porcelain) DidCreateNewFile(fname string)
- func (p *Porcelain) PrintContext(projectName, loadedFrom string)
- func (p *Porcelain) PrintEntries(entries []core.EnvEntry)
- func (p *Porcelain) StartWizard() (*core.WizardAnswers, error)
- func (p *Porcelain) VSpace(size int)
- type Providers
- type Teller
- type TellerFile
- type Templating
Constants ¶
This section is empty.
Variables ¶
View Source
var TellerFileTemplate = `` /* 3019-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type BuiltinProviders ¶
type BuiltinProviders struct {
}
func (*BuiltinProviders) GetProvider ¶
func (p *BuiltinProviders) GetProvider(name string) (core.Provider, error)
func (*BuiltinProviders) ProviderHumanToMachine ¶
func (p *BuiltinProviders) ProviderHumanToMachine() map[string]string
type MappingConfig ¶
type Porcelain ¶
func (*Porcelain) AskForConfirmation ¶
func (*Porcelain) DidCreateNewFile ¶
func (*Porcelain) PrintContext ¶
func (*Porcelain) PrintEntries ¶
func (*Porcelain) StartWizard ¶
func (p *Porcelain) StartWizard() (*core.WizardAnswers, error)
type Teller ¶
type Teller struct {
Cmd []string
Config *TellerFile
Porcelain *Porcelain
Populate *core.Populate
Providers Providers
Entries []core.EnvEntry
Templating *Templating
}
func NewTeller ¶
func NewTeller(tlrfile *TellerFile, cmd []string) *Teller
func (*Teller) ExportDotenv ¶
func (*Teller) PrintEnvKeys ¶
func (tl *Teller) PrintEnvKeys()
func (*Teller) SetupNewProject ¶
func (*Teller) TemplateFile ¶
type TellerFile ¶
type TellerFile struct {
Opts map[string]string `yaml:"opts,omitempty"`
Confirm string `yaml:"confirm,omitempty"`
Project string `yaml:"project,omitempty"`
CarryEnv bool `yaml:"carry_env,omitempty"`
Providers map[string]MappingConfig `yaml:"providers,omitempty"`
LoadedFrom string
}
func NewTellerFile ¶
func NewTellerFile(s string) (*TellerFile, error)
type Templating ¶
type Templating struct {
}
func (*Templating) ForGlob ¶
func (t *Templating) ForGlob() *Templating
func (*Templating) ForTemplate ¶
func (*Templating) New ¶
func (t *Templating) New() *Templating
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
mock_providers
Package mock_providers is a generated GoMock package.
|
Package mock_providers is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.