commithistory

package module
v0.0.0-...-e85674f Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 License: MIT Imports: 6 Imported by: 0

README

commithistory

tiny action history and searching latest one

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithProfile

func WithProfile(profile string) func(*Config)

WithProfile :

Types

type Commit

type Commit struct {
	ID        string
	Alias     string `key:"true"`
	CreatedAt time.Time
	Action    string
}

Commit :

func (*Commit) Match

func (c *Commit) Match(record []string, alias string) bool

Match :

func (*Commit) Parse

func (c *Commit) Parse(xs []string) error

Parse :

func (*Commit) Unparse

func (c *Commit) Unparse(w io.Writer) error

Unparse :

type Config

type Config struct {
	*config.Config
}

Config :

func New

func New(name string, ops ...func(*Config)) *Config

New :

func (*Config) IsNotFound

func (c *Config) IsNotFound(err error) bool

IsNotFound :

func (*Config) Load

func (c *Config) Load(name string, ob interface{}) error

Load :

func (*Config) LoadCommit

func (c *Config) LoadCommit(filename, alias string, ob history.Parsable) error

LoadCommit :

func (*Config) Save

func (c *Config) Save(name string, ob interface{}) error

Save :

func (*Config) SaveCommit

func (c *Config) SaveCommit(filename string, ob history.Unparsable) error

SaveCommit :

Directories

Path Synopsis
cmd
examples

Jump to

Keyboard shortcuts

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