gogit

package
v0.0.0-...-1514155 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckArgs

func CheckArgs(arg ...string)

CheckArgs should be used to ensure the right command line arguments are passed before executing an example.

func CheckIfError

func CheckIfError(err error)

CheckIfError should be used to naively panics if an error is not nil.

func Checkout

func Checkout(url, directory, commit string) (err error)

Basic example of how to checkout a specific commit.

func Clone

func Clone(url, directory string) (err error)

Basic example of how to clone a repository using clone options.

func Info

func Info(format string, args ...interface{})

Info should be used to describe the example commands that are about to run.

func Pull

func Pull(path string) (err error)

Pull changes from a remote repository

func Warning

func Warning(format string, args ...interface{})

Warning should be used to display a warning

Types

This section is empty.

Jump to

Keyboard shortcuts

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