model

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

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

func (*Commit) Commit

func (c *Commit) Commit(hasMessage bool)

func (*Commit) CustomCommit

func (c *Commit) CustomCommit(answers CommitMessage)

func (*Commit) ListHeaderOptions

func (c *Commit) ListHeaderOptions() (list []string)

func (*Commit) LoadList

func (c *Commit) LoadList(vp *viper.Viper) *Commit

func (*Commit) MergeList

func (c *Commit) MergeList(vp *viper.Viper) *Commit

type CommitHeader

type CommitHeader struct {
	Key   string
	Value string
}

func (*CommitHeader) Format

func (c *CommitHeader) Format() string

func (*CommitHeader) String

func (c *CommitHeader) String() string

type CommitMessage

type CommitMessage struct {
	Key     string
	Title   string
	Message string
}

type GitCommand

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

GitCommand is git-cli command with custom stdout and custom stderr

func Git

func Git() *GitCommand

Git will return singleton GitCommand

func (*GitCommand) Exec

func (g *GitCommand) Exec(args ...string) *manager.ErrManager

Exec will run git cli in command line

func (*GitCommand) SetErrWriter

func (g *GitCommand) SetErrWriter(err io.Writer) *GitCommand

SetErrWriter will set err writer

func (*GitCommand) SetOutWriter

func (g *GitCommand) SetOutWriter(out io.Writer) *GitCommand

SetOutWriter will set out writer

type Repo

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

func NewRepo

func NewRepo() *Repo

func (*Repo) Add

func (r *Repo) Add(filepath []string) *manager.ErrManager

func (*Repo) AddAll

func (r *Repo) AddAll() *manager.ErrManager

func (*Repo) GetCommit

func (r *Repo) GetCommit() *Commit

func (*Repo) GetGitRepository

func (r *Repo) GetGitRepository() *git.Repository

func (*Repo) GetWorktree

func (r *Repo) GetWorktree() *git.Worktree

func (*Repo) Setup

func (r *Repo) Setup()

func (*Repo) Status

func (r *Repo) Status() git.Status

Jump to

Keyboard shortcuts

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