Documentation ¶
Index ¶
- func NewDocFromMarkdownParsing(result ParseResult) model.NewDocumentOption
- type FileEnvironment
- type MarkdownOption
- type ParseResult
- type ParseResultCommand
- type ParseResultGlobalConfig
- type ParseResultTask
- type ParseResultTaskConfig
- type ParseResultTaskConfigEnvs
- type ParseResultTaskConfigFiles
- type ParseResultTaskConfigRequires
- type ParseResultTaskConfigSkips
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDocFromMarkdownParsing ¶
func NewDocFromMarkdownParsing(result ParseResult) model.NewDocumentOption
Types ¶
type FileEnvironment ¶
type FileEnvironment struct {
Filepath string
}
type MarkdownOption ¶
type MarkdownOption struct {
// contains filtered or unexported fields
}
func FromLocalFile ¶
func FromLocalFile(workingDir, searchname string) (MarkdownOption, error)
func (MarkdownOption) Filename ¶
func (mo MarkdownOption) Filename() string
type ParseResult ¶
type ParseResult struct { Title string `json:"title"` Description string `json:"description"` Tasks []ParseResultTask `json:"tasks,omitempty"` Config ParseResultGlobalConfig `json:"config,omitempty"` }
func ParseMarkdown ¶
func ParseMarkdown(ctx context.Context, markdown MarkdownOption) (ParseResult, error)
type ParseResultCommand ¶
type ParseResultGlobalConfig ¶
type ParseResultGlobalConfig struct { Root string `json:"root" yaml:"root"` Environ ParseResultTaskConfigEnvs `json:"environ" yaml:"environ"` }
type ParseResultTask ¶
type ParseResultTask struct { Title string `json:"title"` HeadingLevel int `json:"heading-level"` Description string `json:"description"` Config ParseResultTaskConfig `json:"config,omitempty"` Commands []ParseResultCommand `json:"commands,omitempty"` }
type ParseResultTaskConfig ¶
type ParseResultTaskConfig struct { Environ ParseResultTaskConfigEnvs `json:"environ,omitempty" yaml:"environ"` Requires ParseResultTaskConfigRequires `json:"requires,omitempty" yaml:"requires"` Skips ParseResultTaskConfigSkips `json:"skips,omitempty" yaml:"skips"` Previous []string `json:"previous,omitempty" yaml:"previous"` }
type ParseResultTaskConfigRequires ¶
type ParseResultTaskConfigRequires struct {
File ParseResultTaskConfigFiles `json:"file,omitempty" yaml:"file"`
}
type ParseResultTaskConfigSkips ¶
type ParseResultTaskConfigSkips struct {
File ParseResultTaskConfigFiles `json:"file,omitempty" yaml:"file"`
}
Click to show internal directories.
Click to hide internal directories.