Help us shape the future of Go! Take the 2026 Go Developer Survey

commands

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 14 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 NewRebaseAbortCmd added in v1.0.1

func NewRebaseAbortCmd() *cobra.Command

NewRebaseAbortCmd creates the rebase abort command.

func NewRebaseAutosquashCmd added in v1.0.1

func NewRebaseAutosquashCmd() *cobra.Command

NewRebaseAutosquashCmd creates the rebase autosquash command.

func NewRebaseCmd added in v1.0.1

func NewRebaseCmd() *cobra.Command

NewRebaseCmd creates the rebase parent command.

func NewRebaseContinueCmd added in v1.0.1

func NewRebaseContinueCmd() *cobra.Command

NewRebaseContinueCmd creates the rebase continue command.

func NewRebaseListCmd added in v1.0.1

func NewRebaseListCmd() *cobra.Command

NewRebaseListCmd creates the rebase list command.

func NewRebaseRunCmd added in v1.0.1

func NewRebaseRunCmd() *cobra.Command

NewRebaseRunCmd creates the rebase run command.

func NewRebaseSkipCmd added in v1.0.1

func NewRebaseSkipCmd() *cobra.Command

NewRebaseSkipCmd creates the rebase skip command.

func NewRebaseStatusCmd added in v1.0.1

func NewRebaseStatusCmd() *cobra.Command

NewRebaseStatusCmd creates the rebase status 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