Documentation
¶
Overview ¶
Package execute writes journal files according to an export plan.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export( cmd *cobra.Command, plan entity.ExportPlan, jstate *state.JournalState, opts entity.ExportOpts, ) (exported, updated, skipped int)
Export writes files according to the plan.
Parameters:
- cmd: Cobra command for output.
- plan: the export plan with file actions.
- jstate: journal state to update as files are exported.
- opts: export flag values.
Returns:
- exported: number of new files written.
- updated: number of existing files updated (frontmatter preserved).
- skipped: number of files skipped (existing or locked).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.