Documentation
¶
Index ¶
- type ConfigInfo
- type Object
- type Readme
- func (m *Readme) BuildUsages(c *typbuildtool.Context) (infos []UsageInfo)
- func (m *Readme) Commands(c *typbuildtool.Context) []*cli.Command
- func (m *Readme) Configs(c *typbuildtool.Context) (infos []ConfigInfo)
- func (m *Readme) Description(c *typbuildtool.Context) string
- func (m *Readme) Title(c *typbuildtool.Context) string
- func (m *Readme) Usages(c *typbuildtool.Context) (infos []UsageInfo)
- func (m *Readme) WithBuildUsages(buildUsages []UsageInfo) *Readme
- func (m *Readme) WithConfigs(configs []ConfigInfo) *Readme
- func (m *Readme) WithDescription(description string) *Readme
- func (m *Readme) WithTargetFile(targetFile string) *Readme
- func (m *Readme) WithTemplateFile(templateFile string) *Readme
- func (m *Readme) WithTitle(title string) *Readme
- func (m *Readme) WithUsages(usages []UsageInfo) *Readme
- type UsageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigInfo ¶ added in v0.8.15
ConfigInfo is configuration information
type Object ¶ added in v0.8.20
type Object struct {
TemplateFile string
Title string
Description string
Usages []UsageInfo
BuildUsages []UsageInfo
Configs []ConfigInfo
}
Object represent readme documentation
type Readme ¶ added in v0.8.20
type Readme struct {
// NOTE: required to be public to be access by template
TargetFile string
TemplateFile string
// contains filtered or unexported fields
}
Readme module
func (*Readme) BuildUsages ¶ added in v0.8.20
func (m *Readme) BuildUsages(c *typbuildtool.Context) (infos []UsageInfo)
BuildUsages of readme
func (*Readme) Commands ¶ added in v0.8.20
func (m *Readme) Commands(c *typbuildtool.Context) []*cli.Command
Commands of readme
func (*Readme) Configs ¶ added in v0.8.20
func (m *Readme) Configs(c *typbuildtool.Context) (infos []ConfigInfo)
Configs of readme
func (*Readme) Description ¶ added in v0.8.20
func (m *Readme) Description(c *typbuildtool.Context) string
Description of readme
func (*Readme) Title ¶ added in v0.8.20
func (m *Readme) Title(c *typbuildtool.Context) string
Title of readme
func (*Readme) Usages ¶ added in v0.8.20
func (m *Readme) Usages(c *typbuildtool.Context) (infos []UsageInfo)
Usages of readme
func (*Readme) WithBuildUsages ¶ added in v0.8.20
WithBuildUsages return module with new build usages
func (*Readme) WithConfigs ¶ added in v0.8.20
func (m *Readme) WithConfigs(configs []ConfigInfo) *Readme
WithConfigs return odule with new configs
func (*Readme) WithDescription ¶ added in v0.8.20
WithDescription return module with new description
func (*Readme) WithTargetFile ¶ added in v0.8.20
WithTargetFile return module with new target file
func (*Readme) WithTemplateFile ¶ added in v0.8.20
WithTemplateFile return module with new template file
func (*Readme) WithUsages ¶ added in v0.8.20
WithUsages return module with new usages
Click to show internal directories.
Click to hide internal directories.