cmd

package
v0.13.85 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package cmd provides the main commands for the gh-dxp extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliasCmd added in v0.9.2

func AliasCmd(exe utils.Executor) *cobra.Command

AliasCmd extends the functionality of the gh alias command to facilitate the import of Elhub's preferred aliases.

func AliasImportCmd added in v0.9.2

func AliasImportCmd(exe utils.Executor) *cobra.Command

AliasImportCmd imports the default aliases from github.

func BranchCmd

func BranchCmd(exe utils.Executor) *cobra.Command

BranchCmd creates a new branch based on an issue and checks out to it.

func Execute

func Execute(settings *config.Settings, version string) error

Execute runs the main command of the CLI tool.

func GenerateCmd

func GenerateCmd(settings *config.Settings, version string) (*cobra.Command, error)

GenerateCmd sets up the command structure for the CLI tool using Cobra.

func LintCmd

func LintCmd(exe utils.Executor, settings *config.Settings) *cobra.Command

LintCmd creates a new command to run the linters defined in the .devxp config.

func OwnerCmd added in v0.2.4

func OwnerCmd(exe utils.Executor, _ *config.Settings) *cobra.Command

OwnerCmd creates a new cobra command for retrieving code owner information.

func PRCmd

func PRCmd(exe utils.Executor, settings *config.Settings) *cobra.Command

PRCmd extends the functionality of the gh pr command.

func PRCreateCmd added in v0.7.10

func PRCreateCmd(exe utils.Executor, settings *config.Settings) *cobra.Command

PRCreateCmd handles the creation of a pull request.

func PRListCmd added in v0.13.0

func PRListCmd(exe utils.Executor) *cobra.Command

PRListCmd handles the listing of pull requests.

func PRMergeCmd added in v0.7.10

func PRMergeCmd(exe utils.Executor) *cobra.Command

PRMergeCmd handles the merging of a pull request.

func PRUpdateCmd added in v0.8.4

func PRUpdateCmd(exe utils.Executor, settings *config.Settings) *cobra.Command

PRUpdateCmd handles the updating of a pull request. This is a more limited version of the create command.

func RepoCloneCmd added in v0.13.6

func RepoCloneCmd(exe utils.Executor) *cobra.Command

RepoCloneCmd creates a new command to clone all repositories (or just those with a given name).

func RepoCmd added in v0.13.6

func RepoCmd(exe utils.Executor, _ *config.Settings) *cobra.Command

RepoCmd extends the functionality of the gh repo command.

func StatusCmd added in v0.5.1

func StatusCmd(exe utils.Executor) *cobra.Command

StatusCmd creates a new cobra.Command for the status functionality.

func TemplateCmd added in v0.2.1

func TemplateCmd(_ utils.Executor, settings *config.Settings) *cobra.Command

TemplateCmd initializes a repository with default files.

func TestCmd added in v0.2.0

func TestCmd(exe utils.Executor) *cobra.Command

TestCmd handles the running of tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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