commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package commands contains the CLI command implementations.

Index

Constants

View Source
const Version = "v1.0.0"

Version is the current version of hunk.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command.

func NewApplyPatchCmd

func NewApplyPatchCmd() *cobra.Command

NewApplyPatchCmd creates the apply-patch command.

func NewCommitCmd

func NewCommitCmd() *cobra.Command

NewCommitCmd creates the commit command.

func NewDiffCmd

func NewDiffCmd() *cobra.Command

NewDiffCmd creates the diff command.

func NewPreviewCmd

func NewPreviewCmd() *cobra.Command

NewPreviewCmd creates the preview command.

func NewResetCmd

func NewResetCmd() *cobra.Command

NewResetCmd creates the reset command.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root command.

func NewStageCmd

func NewStageCmd() *cobra.Command

NewStageCmd creates the stage command.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the version command.

Types

type Config

type Config struct {
	WorkDir string
	JSONOut bool
}

Config holds runtime configuration for commands.

Jump to

Keyboard shortcuts

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