gitter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	ConfigGet(key string, options ConfigGetOptions) (string, error)
	ConfigSet(key, value string, options ConfigSetOptions) error
}

Config config reader and writer

type ConfigGetOptions

type ConfigGetOptions struct {
	File string
}

ConfigGetOptions config getter options

type ConfigSetOptions

type ConfigSetOptions struct {
	File string
}

ConfigSetOptions config setter options

type Diff

type Diff interface {
	DiffAM(path string, commit string) ([]string, error)
	DiffD(path string, commit string) ([]string, error)
}

Diff from specified commit

type Gitter

type Gitter interface {
	Config
	Status

	Checkout(head string) error
	GetHead() (string, error)
	GetHeadSHA1() (string, error)
	GetSymbolicHead() (string, error)
	GetVersion() (majorVersion, minorVersion int, err error)

	ListFiles(path string) ([]string, error)

	Diff
}

Gitter interface to interact with git repo

func NewDefaultGitter

func NewDefaultGitter() Gitter

NewDefaultGitter new default gitter with default commander

func NewDefaultGitterWithCommander

func NewDefaultGitterWithCommander(cmd command.Commander) Gitter

NewDefaultGitterWithCommander new default gitter with specific commander

type Status

type Status interface {
	GetPorcelainStatus() (status []string, err error)
	GetUnoPorcelainStatus() (status []string, err error)
}

Status git status reader interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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