cmd

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UsageTemplate is the template used for the help output.
	UsageTemplate = `` /* 1412-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func CommandName

func CommandName(args []string) string

CommandName returns the name of the command from the args.

func GitLFSAuthenticateCommand

func GitLFSAuthenticateCommand() *cobra.Command

GitLFSAuthenticateCommand returns a cobra command for git-lfs-authenticate.

func GitLFSTransfer

func GitLFSTransfer() *cobra.Command

GitLFSTransfer returns a cobra command for git-lfs-transfer.

func GitReceivePackCommand

func GitReceivePackCommand() *cobra.Command

GitReceivePackCommand returns a cobra command for git-receive-pack.

func GitUploadArchiveCommand

func GitUploadArchiveCommand() *cobra.Command

GitUploadArchiveCommand returns a cobra command for git-upload-archive.

func GitUploadPackCommand

func GitUploadPackCommand() *cobra.Command

GitUploadPackCommand returns a cobra command for git-upload-pack.

func InfoCommand

func InfoCommand() *cobra.Command

InfoCommand returns a command that shows the user's info

func IsPublicKeyAdmin

func IsPublicKeyAdmin(cfg *config.Config, pk ssh.PublicKey) bool

IsPublicKeyAdmin returns true if the given public key is an admin key from the initial_admin_keys config or environment field.

func JWTCommand

func JWTCommand() *cobra.Command

JWTCommand returns a command that generates a JSON Web Token.

func PubkeyCommand

func PubkeyCommand() *cobra.Command

PubkeyCommand returns a command that manages user public keys.

func RepoCommand

func RepoCommand() *cobra.Command

RepoCommand returns a command for managing repositories.

func SetUsernameCommand

func SetUsernameCommand() *cobra.Command

SetUsernameCommand returns a command that sets the user's username.

func SettingsCommand

func SettingsCommand() *cobra.Command

SettingsCommand returns a command that manages server settings.

func TokenCommand

func TokenCommand() *cobra.Command

TokenCommand returns a command that manages user access tokens.

func UsageFunc

func UsageFunc(c *cobra.Command) error

UsageFunc is a function that can be used as a cobra.Command's UsageFunc to render the help output.

func UserCommand

func UserCommand() *cobra.Command

UserCommand returns the user subcommand.

Types

This section is empty.

Jump to

Keyboard shortcuts

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