lib

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "4.0.0"

Version is the github-nippou version

Variables

This section is empty.

Functions

func CollectEvents

func CollectEvents(ctx context.Context, client *github.Client, user string, sinceTime, untilTime time.Time) []*github.Event

CollectEvents retrieve GitHub `user` events from `sinceTime` to `untilTime`

func Init

func Init() error

Init initializes github-nippou settings

func List

func List(sinceDate, untilDate string, debug bool) error

List outputs formated GitHub events to stdout

func OpenSettings

func OpenSettings() error

OpenSettings opens settings url with web browser

Types

type Format

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

Format is Formatter

func NewFormat

func NewFormat(ctx context.Context, client *github.Client, debug bool) *Format

NewFormat is an initializer

func (*Format) All

func (f *Format) All(lines Lines) (string, error)

All returns all lines which are formatted and sorted

func (*Format) Line

func (f *Format) Line(event *github.Event, i int) Line

Line returns Issue/PR info retrieving from GitHub

type Line

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

Line is line infomation

type Lines

type Lines []Line

Lines has sort.Interface

func (Lines) Len

func (l Lines) Len() int

func (Lines) Less

func (l Lines) Less(i, j int) bool

func (Lines) Swap

func (l Lines) Swap(i, j int)

type Settings

type Settings struct {
	Format struct {
		Subject string
		Line    string
	}
	Dictionary struct {
		Status struct {
			Merged string
			Closed string
		}
	}
	URL string
}

Settings has configure

func (*Settings) Init

func (s *Settings) Init() error

Init initializes Settings

Jump to

Keyboard shortcuts

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