Documentation
¶
Overview ¶
Package extract retrieves entry content from command arguments, files, or stdin for the add command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Content ¶
Content retrieves content from various sources for adding entries.
Content is extracted in priority order:
- From the file specified by --file flag
- From command line arguments (after the entry type)
- From stdin (if piped)
Parameters:
- args: Command arguments where args[1:] may contain inline content
- flags: Configuration flags including FromFile path
Returns:
- string: Extracted and trimmed content
- error: Non-nil if no content source is available or reading fails
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.