prompt

package
Version: v0.0.0-...-3b39f53 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectChanges

func CollectChanges(lines []string) (int, int, int, int)

CollectChanges ...

func Communicate

func Communicate(name string, arg ...string) (string, string, error)

Communicate ...

func GetLines

func GetLines(name string, arg ...string) ([]string, error)

GetLines ...

func ParseBranchLine

func ParseBranchLine(line string) (string, bool, bool, int, int, error)

ParseBranchLine ...

Types

type GitStatus

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

Status ...

func GetCurrentStatus

func GetCurrentStatus() (GitStatus, error)

GetCurrentStatus ...

func (*GitStatus) Prompt

func (s *GitStatus) Prompt(color color.Colored) string

Format ...

type Status

type Status interface {
	Prompt(color color.Colored) string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL