execute

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL