cmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnauthorized is returned when the user is not authorized to perform action.
	ErrUnauthorized = fmt.Errorf("Unauthorized")
	// ErrRepoNotFound is returned when the repo is not found.
	ErrRepoNotFound = fmt.Errorf("Repository not found")
	// ErrFileNotFound is returned when the file is not found.
	ErrFileNotFound = fmt.Errorf("File not found")
)

Functions

func CatCommand

func CatCommand() *cobra.Command

CatCommand returns a command that prints the contents of a file.

func GitCommand

func GitCommand() *cobra.Command

GitCommand returns a command that handles Git operations.

func ListCommand

func ListCommand() *cobra.Command

ListCommand returns a command that list file or directory at path.

func ReloadCommand

func ReloadCommand() *cobra.Command

ReloadCommand returns a command that reloads the server configuration.

func RootCommand

func RootCommand() *cobra.Command

RootCommand is the root command for the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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