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 ¶
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.
Click to show internal directories.
Click to hide internal directories.