Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Exit(format string, args ...interface{})
- func ExitWithError(err error)
- func LoggedError(err error, format string, args ...interface{})
- func Panic(err error, format string, args ...interface{})
- func PipeCommand(name string, args ...string) error
- func PipeMediaCommand(name string, args ...string) error
- func Print(format string, args ...interface{})
- func Run()
- type ErrorWithStack
- type PruneProgress
- type PruneProgressChan
- type PruneProgressType
Constants ¶
View Source
const ( PruneProgressTypeLocal = PruneProgressType(iota) PruneProgressTypeRetain = PruneProgressType(iota) PruneProgressTypeVerify = PruneProgressType(iota) )
Variables ¶
View Source
var ( Debugging = false ErrorBuffer = &bytes.Buffer{} ErrorWriter = io.MultiWriter(os.Stderr, ErrorBuffer) OutputWriter = io.MultiWriter(os.Stdout, ErrorBuffer) RootCmd = &cobra.Command{ Use: "git-lfs", Run: func(cmd *cobra.Command, args []string) { versionCommand(cmd, args) cmd.Usage() }, } ManPages = make(map[string]string, 20) )
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debug prints a formatted message if debugging is enabled. The formatted message also shows up in the panic log, if created.
func Error ¶
func Error(format string, args ...interface{})
Error prints a formatted message to Stderr. It also gets printed to the panic log if one is created for this command.
func Exit ¶
func Exit(format string, args ...interface{})
Exit prints a formatted message and exits.
func ExitWithError ¶ added in v1.1.2
func ExitWithError(err error)
func LoggedError ¶
LoggedError prints a formatted message to Stderr and writes a stack trace for the error to a log file without exiting.
func Panic ¶
Panic prints a formatted message, and writes a stack trace for the error to a log file before exiting.
func PipeCommand ¶
func PipeMediaCommand ¶
Types ¶
type ErrorWithStack ¶
type PruneProgress ¶ added in v1.1.0
type PruneProgress struct { ProgressType PruneProgressType Count int // Number of items done }
Progress from a sub-task of prune
type PruneProgressChan ¶ added in v1.1.0
type PruneProgressChan chan PruneProgress
type PruneProgressType ¶ added in v1.1.0
type PruneProgressType int
Source Files ¶
- command_checkout.go
- command_clean.go
- command_clone.go
- command_env.go
- command_ext.go
- command_fetch.go
- command_fsck.go
- command_init.go
- command_install.go
- command_logs.go
- command_ls_files.go
- command_pointer.go
- command_pre_push.go
- command_prune.go
- command_pull.go
- command_push.go
- command_smudge.go
- command_status.go
- command_track.go
- command_uninit.go
- command_uninstall.go
- command_untrack.go
- command_update.go
- command_version.go
- commands.go
- uploader.go
Click to show internal directories.
Click to hide internal directories.