Versions in this module Expand all Collapse all v1 v1.0.2 Jun 4, 2021 Changes in this version + func NewTestDB() *gorm.DB type Context + Desc bool + HasRegexp bool + Order string + Regexp bool v1.0.1 Jun 1, 2021 Changes in this version + const ByteConfig + const ByteDir + const ByteFile + const ByteIgnore + const ByteSeq + const ByteStack + func NewDB(ctx *Context) *gorm.DB + type App struct + func InitApp(ctx *Context) *App + func NewApp(ctx *Context, fs *Service) *App + func (p *App) Add(paths []string) + func (p *App) Ignore(paths []string) + func (p *App) Search(args []string) + type Config struct + CreatedAt time.Time + ID uint + Type int + Value string + type Context struct + DataBasePath string + Debug bool + Ext string + Limit int + Offset int + Remove bool + Simple bool + func NewContext(cmd *cobra.Command) *Context + type File struct + Base string + Dir bool + Ext string + ModTime time.Time + Path string + Size int64 + Ver int + type Service struct + func NewService(ctx *Context, db *gorm.DB) *Service + func (p *Service) Add(path string) + func (p *Service) Count(args []string) int64 + func (p *Service) Dirs() []string + func (p *Service) Ignore(path string) + func (p *Service) Ignores() []string + func (p *Service) Index() + func (p *Service) RemoveDir(path string) + func (p *Service) RemoveFiles(path string) + func (p *Service) RemoveIgnore(path string) + func (p *Service) Search(args []string) []*File