gi

package
v0.0.0-...-12abc5f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNameFromUrl

func GetNameFromUrl(url string) *string

Types

type Config

type Config struct {
	Version     int    `json:"version"`
	GithubToken string `json:"github_token"`
}

func GetConfig

func GetConfig() *Config

func (*Config) Get

func (config *Config) Get() bool

func (*Config) Save

func (config *Config) Save()

type Gi

type Gi interface {
	Project
	SetGithubToken(token string) bool
	GetUserName() *string
	GetClient() *github.Client
	GetConfig() *Config
	Ctx() context.Context
}

func GetGi

func GetGi(config *Config) Gi

type Project

type Project interface {
	GetProjectName() *string
}

func GetCurrentProject

func GetCurrentProject() Project

Instantiate Project from working directory, or the supplied path

func GetProject

func GetProject(path string) Project

Instantiate Project from path

type Tui

type Tui interface {
	Gi
	Log(msg string)
	Fetch() []*github.Issue
	Run()
	Stop()
}

func CreateIssueListView

func CreateIssueListView() Tui

Jump to

Keyboard shortcuts

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