Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusError = iota StatusCloned StatusFetched StatusUpToDate StatusUnmanaged )
View Source
const ( SymbolError = "\u001b[31m✗ \u001b[0m" //red SymbolClone = "\u001b[36m+ \u001b[0m" //cyan SymbolFetch = "\u001b[33m↓ \u001b[0m" //yellow SymbolUpToDate = "\u001b[32m✓ \u001b[0m" //green SymbolUnmanaged = "\u001b[33m! \u001b[0m" )
Variables ¶
This section is empty.
Functions ¶
func GitSyncHelper ¶
func GitSyncHelper(g concurrency.Project) interface{}
func ShouldBeVerbose ¶
Types ¶
type Git ¶
type Git interface { GetLocation() string PlainOpen() (*git.Repository, error) PlainClone() (string, error) Fetch(*git.Repository) (string, error) Pull(*git.Worktree) (string, error) }
Git interface for network operations
type GitSyncProject ¶
type GitSyncProject struct {
concurrency.Project
}
func (GitSyncProject) Fetch ¶
func (p GitSyncProject) Fetch(repo *git.Repository) (string, error)
func (GitSyncProject) GetLocation ¶
func (p GitSyncProject) GetLocation() string
func (GitSyncProject) PlainClone ¶
func (p GitSyncProject) PlainClone() (string, error)
func (GitSyncProject) PlainOpen ¶
func (p GitSyncProject) PlainOpen() (*git.Repository, error)
func (GitSyncProject) Pull ¶
func (p GitSyncProject) Pull(worktree *git.Worktree) (string, error)
Click to show internal directories.
Click to hide internal directories.