repolist

package module
v0.22.39 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 15 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var REPO *log.LogFlag
View Source
var WARN *log.LogFlag

Functions

func MyTicker

func MyTicker(t time.Duration, name string, f func())

func ReleaseReportHeader added in v0.22.5

func ReleaseReportHeader() string

func ReportHeader added in v0.22.5

func ReportHeader() string

func TimeFunction

func TimeFunction(f func()) time.Duration

timeFunction takes a function as an argument and returns the execution time.

Types

type ByName added in v0.22.5

type ByName []*RepoRow

func (ByName) Len added in v0.22.5

func (a ByName) Len() int

func (ByName) Less added in v0.22.5

func (a ByName) Less(i, j int) bool

func (ByName) Swap added in v0.22.5

func (a ByName) Swap(i, j int)

type RepoIterator added in v0.22.5

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

func NewRepoIterator added in v0.22.5

func NewRepoIterator(repos []*RepoRow) *RepoIterator

NewRepoIterator initializes a new iterator.

func (*RepoIterator) Repo added in v0.22.5

func (it *RepoIterator) Repo() *RepoRow

Repo returns the current repo.

func (*RepoIterator) Scan added in v0.22.5

func (it *RepoIterator) Scan() bool

Scan moves to the next element and returns false if there are no more repos.

type RepoList

type RepoList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

this app's variables

func Init added in v0.22.17

func Init(f *forgepb.Forge, g *gui.Node) *RepoList

func InitBox added in v0.22.17

func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList

func (*RepoList) AddRepo added in v0.22.17

func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error)

adds a gui row to the table based off the repo protobuf

func (*RepoList) AutotypistView added in v0.22.17

func (rl *RepoList) AutotypistView(parent *gui.Node)

This creates a view of the repos you can only have one at this point

func (*RepoList) Disable

func (b *RepoList) Disable()

func (*RepoList) Enable

func (b *RepoList) Enable()

func (*RepoList) FindByName added in v0.22.16

func (r *RepoList) FindByName(name string) *RepoRow

better name: use this matches by path or by name

func (*RepoList) FindByPath added in v0.22.16

func (r *RepoList) FindByPath(path string) *RepoRow

func (*RepoList) FindRepo

func (r *RepoList) FindRepo(path string) *RepoRow

func (*RepoList) Hidden

func (r *RepoList) Hidden() bool

func (*RepoList) Hide

func (r *RepoList) Hide()

func (*RepoList) MakeGoWork added in v0.22.2

func (rl *RepoList) MakeGoWork() error

func (*RepoList) RegisterHideFunction

func (r *RepoList) RegisterHideFunction(f func(*RepoRow))

func (*RepoList) ReposAll added in v0.22.5

func (r *RepoList) ReposAll() *RepoIterator

func (*RepoList) ReposSortByName added in v0.22.5

func (r *RepoList) ReposSortByName() *RepoIterator

func (*RepoList) ScanRepositories

func (r *RepoList) ScanRepositories() (int, string)

func (*RepoList) Show

func (r *RepoList) Show()

func (*RepoList) Total

func (rl *RepoList) Total() int

func (*RepoList) Watchdog

func (r *RepoList) Watchdog(f func())

this also means that if you click the checkbox after the delay, then the scan will run right away, but if you check the checkbox twice in 5 seconds, it won't rerun until the delay again

type RepoRow added in v0.20.10

type RepoRow struct {
	Status *repostatus.RepoStatus
	// contains filtered or unexported fields
}

func (*RepoRow) CheckDirty added in v0.20.10

func (r *RepoRow) CheckDirty() bool

func (*RepoRow) GetGoPath added in v0.22.35

func (r *RepoRow) GetGoPath() string

func (*RepoRow) Hidden added in v0.20.10

func (r *RepoRow) Hidden() bool

func (*RepoRow) Hide added in v0.20.10

func (r *RepoRow) Hide()

func (*RepoRow) IsBinary added in v0.22.38

func (r *RepoRow) IsBinary() bool

func (*RepoRow) IsDirty added in v0.20.10

func (r *RepoRow) IsDirty() bool

func (*RepoRow) IsPerfect added in v0.20.10

func (r *RepoRow) IsPerfect() bool

func (*RepoRow) IsProtobuf added in v0.22.17

func (r *RepoRow) IsProtobuf() (bool, []string, error)

func (*RepoRow) LastTag added in v0.20.10

func (r *RepoRow) LastTag() string

func (*RepoRow) Name added in v0.20.10

func (rs *RepoRow) Name() string

returns a name for human consuption only todo: implement nicknames

func (*RepoRow) NewScan added in v0.20.10

func (r *RepoRow) NewScan() int

func (*RepoRow) ReadOnly added in v0.20.10

func (r *RepoRow) ReadOnly() bool

func (*RepoRow) RepoType added in v0.22.17

func (r *RepoRow) RepoType() string

func (*RepoRow) Run added in v0.22.12

func (r *RepoRow) Run(cmd []string) cmd.Status

func (*RepoRow) Scan added in v0.20.10

func (r *RepoRow) Scan() int

func (*RepoRow) Show added in v0.20.10

func (r *RepoRow) Show()

func (*RepoRow) Show2 added in v0.22.5

func (r *RepoRow) Show2()

func (*RepoRow) StandardHeader added in v0.22.5

func (r *RepoRow) StandardHeader() string

makes a human readable thing for standard out. https://pkg.go.dev/fmt has good references for Sprintf

func (*RepoRow) StandardReleaseHeader added in v0.22.5

func (r *RepoRow) StandardReleaseHeader() string

makes a human readable thing for standard out.

func (*RepoRow) State added in v0.20.10

func (r *RepoRow) State() string

a human readable state of the current repo

func (*RepoRow) UpdatePb added in v0.22.38

func (r *RepoRow) UpdatePb(newpb *gitpb.Repo)

func (*RepoRow) Xterm added in v0.22.38

func (rs *RepoRow) Xterm(cmdline string)

func (*RepoRow) XtermNohup added in v0.22.38

func (rs *RepoRow) XtermNohup(cmdline string)

func (*RepoRow) XtermWait added in v0.22.38

func (rs *RepoRow) XtermWait(cmdline string)

Jump to

Keyboard shortcuts

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