merge

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: 10 Imported by: 0

Documentation

Overview

Package merge implements the ctx pad merge subcommand.

It merges entries from one or more external pad files into the current pad.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the pad merge subcommand.

Returns:

  • *cobra.Command: Configured merge subcommand

func Run

func Run(
	cmd *cobra.Command,
	files []string,
	keyFile string,
	dryRun bool,
) error

Run reads entries from input files, deduplicates against the current pad, and writes the merged result.

Parameters:

  • cmd: Cobra command for output
  • files: Input file paths to merge
  • keyFile: Optional path to key file (empty = use project key)
  • dryRun: If true, print summary without writing

Returns:

  • error: Non-nil on read/write failures

Types

This section is empty.

Jump to

Keyboard shortcuts

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