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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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