Documentation
¶
Index ¶
- Variables
- type DirectoryPath
- type QuestionRenderer
- type RenderResult
- func (r *RenderResult) RecordAllSkipped()
- func (r *RenderResult) RecordDirectoryCreated(path domain.Path)
- func (r *RenderResult) RecordFileCreated(path domain.Path)
- func (r *RenderResult) RecordFileSkipped(path domain.Path)
- func (r *RenderResult) RecordFileUpdated(path domain.Path)
- func (r *RenderResult) RecordTestUnsupported()
- type RenderStrategy
- type Renderer
Constants ¶
This section is empty.
Variables ¶
View Source
var Files embed.FS
Functions ¶
This section is empty.
Types ¶
type DirectoryPath ¶
type DirectoryPath string
func NewDirectoryPath ¶
func NewDirectoryPath(path string) (DirectoryPath, error)
func (DirectoryPath) String ¶
func (d DirectoryPath) String() string
type QuestionRenderer ¶
type QuestionRenderer struct {
// contains filtered or unexported fields
}
func New ¶
func New() (*QuestionRenderer, error)
func (*QuestionRenderer) RenderProblem ¶
func (r *QuestionRenderer) RenderProblem(ctx context.Context, problem *domain.Problem, force bool) (*RenderResult, error)
type RenderResult ¶
type RenderResult struct {
DirectoryCreated string
FilesCreated []string
FilesUpdated []string
FilesSkipped []string
TestSupported bool
}
func NewRenderResult ¶
func NewRenderResult() *RenderResult
func (*RenderResult) RecordAllSkipped ¶
func (r *RenderResult) RecordAllSkipped()
func (*RenderResult) RecordDirectoryCreated ¶
func (r *RenderResult) RecordDirectoryCreated(path domain.Path)
func (*RenderResult) RecordFileCreated ¶
func (r *RenderResult) RecordFileCreated(path domain.Path)
func (*RenderResult) RecordFileSkipped ¶
func (r *RenderResult) RecordFileSkipped(path domain.Path)
func (*RenderResult) RecordFileUpdated ¶
func (r *RenderResult) RecordFileUpdated(path domain.Path)
func (*RenderResult) RecordTestUnsupported ¶
func (r *RenderResult) RecordTestUnsupported()
type RenderStrategy ¶
type RenderStrategy int
const ( SkipExisting RenderStrategy = iota ForceOverwrite )
Click to show internal directories.
Click to hide internal directories.