repos

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitHubFolder

func GitHubFolder() string

Get the root GitHub folder

func RepoLocation

func RepoLocation(repo api.Repo) string

Get the location to clone the repo

func WorkingState

func WorkingState(path string) (committed bool, pushed bool)

Check so see if a repo has a dirty working tree or any commits that haven't been pushed Returns if all changes have been committed and pushed

Types

type LocalRepo

type LocalRepo struct {
	Owner    string
	Name     string
	Type     string
	Language string
	Path     string
}

A repo already cloned locally

func FilterRepos added in v1.4.0

func FilterRepos(username string, repos []LocalRepo, args []string) (filtered []LocalRepo)

Filter out repos that don't have the owner and name passed in via args

func Repos

func Repos() (repos []LocalRepo)

Get all cloned repos in fgh's file structure

Jump to

Keyboard shortcuts

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