Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { // Output gets the output lines that should be embedded Output() ([]string, error) // Parse parses a comment as this command // // If the comment cannot be parsed, an error is returned. Parse(comment string) error }
Command is a generic embedme command
type EmbedCommandOutputCommand ¶
EmbedCommandOutputCommand ...
func NewEmbedCommandOutputCommand ¶
func NewEmbedCommandOutputCommand(fs afero.Fs, cwd string) *EmbedCommandOutputCommand
NewEmbedCommandOutputCommand ...
func (*EmbedCommandOutputCommand) Output ¶
func (cmd *EmbedCommandOutputCommand) Output() ([]string, error)
Output ...
func (*EmbedCommandOutputCommand) Parse ¶
func (cmd *EmbedCommandOutputCommand) Parse(comment string) error
Parse ...
type EmbedFileCommand ¶
type EmbedFileCommand struct { Command Root string Path string StartLine int EndLine int BaseDirs []string FS afero.Fs }
EmbedFileCommand ...
func NewEmbedFileCommand ¶
func NewEmbedFileCommand(fs afero.Fs, baseDirs ...string) *EmbedFileCommand
NewEmbedFileCommand ...
func (*EmbedFileCommand) Output ¶
func (cmd *EmbedFileCommand) Output() ([]string, error)
Output ...
type EmbedURLCommand ¶
EmbedURLCommand ...
func NewEmbedURLCommand ¶
func NewEmbedURLCommand(url url.URL) *EmbedURLCommand
NewEmbedURLCommand ...
Click to show internal directories.
Click to hide internal directories.