mv

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

Documentation

Overview

Package mv implements the ctx pad mv subcommand.

It moves a pad entry from one position to another by index.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the pad mv subcommand.

Returns:

  • *cobra.Command: Configured mv subcommand

func Run

func Run(cmd *cobra.Command, n, m int) error

Run moves entry from 1-based position n to 1-based position m.

Parameters:

  • cmd: Cobra command for output
  • n: Source position (1-based)
  • m: Destination position (1-based)

Returns:

  • error: Non-nil on invalid index or read/write failure

Types

This section is empty.

Jump to

Keyboard shortcuts

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