Documentation
¶
Index ¶
- Constants
- func BuildEnvVariable(name string) string
- func BuildEnvVariablePrefix(name string) (ret string)
- func ParseBool(val string) (bool, error)
- func ParseBoolElseFalse(val string) (ret bool)
- type Plugin
- type PluginBase
- func (o *PluginBase) AddSetting(name string, required bool) (ret *Setting)
- func (o *PluginBase) AddSetupQuestion(name string, required bool) (ret *SetupQuestion)
- func (o *PluginBase) AddSetupQuestionBool(name string, required bool) (ret *SetupQuestion)
- func (o *PluginBase) AddSetupQuestionCustom(name string, required bool, question string) (ret *SetupQuestion)
- func (o *PluginBase) AddSetupQuestionCustomBool(name string, required bool, question string) (ret *SetupQuestion)
- func (o *PluginBase) Configure() (err error)
- func (o *PluginBase) GetName() string
- func (o *PluginBase) GetSetupDescription() (ret string)
- func (o *PluginBase) Setup() (err error)
- func (o *PluginBase) SetupFillEnvFileContent(fileEnvFileContent *bytes.Buffer)
- func (o *PluginBase) SetupOrSkip() (err error)
- type Setting
- type Settings
- type SetupQuestion
- type SetupQuestions
Constants ¶
View Source
const AnswerReset = "reset"
View Source
const SettingTypeBool = "bool"
Variables ¶
This section is empty.
Functions ¶
func BuildEnvVariable ¶
func BuildEnvVariablePrefix ¶
func ParseBoolElseFalse ¶ added in v1.4.197
Types ¶
type PluginBase ¶
type PluginBase struct {
Settings
SetupQuestions
Name string
SetupDescription string
EnvNamePrefix string
ConfigureCustom func() error
}
func (*PluginBase) AddSetting ¶
func (o *PluginBase) AddSetting(name string, required bool) (ret *Setting)
func (*PluginBase) AddSetupQuestion ¶
func (o *PluginBase) AddSetupQuestion(name string, required bool) (ret *SetupQuestion)
func (*PluginBase) AddSetupQuestionBool ¶ added in v1.4.197
func (o *PluginBase) AddSetupQuestionBool(name string, required bool) (ret *SetupQuestion)
func (*PluginBase) AddSetupQuestionCustom ¶
func (o *PluginBase) AddSetupQuestionCustom(name string, required bool, question string) (ret *SetupQuestion)
func (*PluginBase) AddSetupQuestionCustomBool ¶ added in v1.4.197
func (o *PluginBase) AddSetupQuestionCustomBool(name string, required bool, question string) (ret *SetupQuestion)
func (*PluginBase) Configure ¶
func (o *PluginBase) Configure() (err error)
func (*PluginBase) GetName ¶
func (o *PluginBase) GetName() string
func (*PluginBase) GetSetupDescription ¶
func (o *PluginBase) GetSetupDescription() (ret string)
func (*PluginBase) Setup ¶
func (o *PluginBase) Setup() (err error)
func (*PluginBase) SetupFillEnvFileContent ¶
func (o *PluginBase) SetupFillEnvFileContent(fileEnvFileContent *bytes.Buffer)
func (*PluginBase) SetupOrSkip ¶
func (o *PluginBase) SetupOrSkip() (err error)
type Setting ¶
type Setting struct {
EnvVariable string
Value string
Required bool
Type string // "string" (default), "bool"
}
func NewSetting ¶
func (*Setting) FillEnvFileContent ¶
func (*Setting) IsValidErr ¶
type Settings ¶
type Settings []*Setting
func (Settings) FillEnvFileContent ¶
func (Settings) IsConfigured ¶
type SetupQuestion ¶
func NewSetupQuestion ¶
func NewSetupQuestion(question string) *SetupQuestion
func (*SetupQuestion) Ask ¶
func (o *SetupQuestion) Ask(label string) (err error)
func (*SetupQuestion) OnAnswer ¶
func (o *SetupQuestion) OnAnswer(answer string) (err error)
type SetupQuestions ¶
type SetupQuestions []*SetupQuestion
func (SetupQuestions) Ask ¶
func (o SetupQuestions) Ask(label string) (err error)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package template provides datetime operations for the template system
|
Package template provides datetime operations for the template system |
|
code_helper
command
|
|
|
to_pdf
command
|
|
|
youtube
Package youtube provides YouTube video transcript and comment extraction functionality.
|
Package youtube provides YouTube video transcript and comment extraction functionality. |
Click to show internal directories.
Click to hide internal directories.