repo

package
v0.0.0-...-9b7788e Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	// contains filtered or unexported fields
}

func NewGit

func NewGit() *Git

NewGit creates a new instance of Git

func (*Git) Commit

func (g *Git) Commit() (string, error)

Commit runs git commit

func (*Git) GetRepo

func (g *Git) GetRepo() string

func (*Git) HandleEvent

func (g *Git) HandleEvent(errChan chan error, resultChan chan string, event fsnotify.Event)

func (*Git) HasChanges

func (g *Git) HasChanges() (bool, error, string)

func (*Git) Pull

func (g *Git) Pull() (string, error)

Commit runs git pull

func (*Git) Push

func (g *Git) Push() (string, error)

Commit runs git push

func (*Git) SetRepo

func (g *Git) SetRepo(repo string) (*Git, error)

SetRepo sets this instance's repo

func (*Git) SetWatcher

func (g *Git) SetWatcher() error

func (*Git) Stage

func (g *Git) Stage() (string, error)

Stage runs git stage

func (*Git) Status

func (g *Git) Status() (string, error)

Status runs git status

func (*Git) Sync

func (g *Git) Sync() (string, error)

Sync syncs the current repo by running stage, commit, pull then finally push

func (*Git) Watcher

func (g *Git) Watcher() *fsnotify.Watcher

Watcher returns the watcher instance

Jump to

Keyboard shortcuts

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