edit

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

Documentation

Overview

Package edit implements the ctx pad edit subcommand.

It modifies an existing pad entry by index, supporting replace, append, and prepend modes as well as blob file and label updates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the pad edit subcommand.

Supports three modes:

  • Replace: ctx pad edit N "text"
  • Append: ctx pad edit N --append "text"
  • Prepend: ctx pad edit N --prepend "text"
  • Blob file: ctx pad edit N --file ./v2.md
  • Blob label: ctx pad edit N --label "new label"

The --append and --prepend flags are mutually exclusive with each other and with the positional replacement text argument. The --file and --label flags conflict with positional/--append/--prepend.

Returns:

  • *cobra.Command: Configured edit subcommand

Types

This section is empty.

Jump to

Keyboard shortcuts

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