Documentation
¶
Index ¶
- func StartTransfer(src io.Reader, dest io.Writer, progress *components.Progress) (int64, error)
- type Group
- func (g *Group) AppendRunner(f func(progress *components.Progress) func()) *Group
- func (g *Group) Display() error
- func (g *Group) Init() tea.Cmd
- func (g *Group) Kill()
- func (g *Group) SetProgram(program *tea.Program)
- func (g *Group) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (g *Group) View() string
- func (g *Group) WithDoneView(f func() string) *Group
- func (g *Group) WithQuitKey(key key.Binding) *Group
- type Transfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartTransfer ¶ added in v0.4.2
StartTransfer trans scr to desc, increase the progress by the way
Types ¶
type Group ¶
type Group struct { *components.PrintHelper // kill program Quit key.Binding // contains filtered or unexported fields }
Group the progress group
func NewGroup ¶
func NewGroup(progressList ...*components.Progress) *Group
NewGroup progressList the size must > 1
func NewGroupWithCount ¶ added in v0.3.3
func (*Group) AppendRunner ¶ added in v0.3.3
func (g *Group) AppendRunner(f func(progress *components.Progress) func()) *Group
func (*Group) SetProgram ¶
func (*Group) WithDoneView ¶ added in v0.4.1
WithDoneView when Group is done, will callback this func, will overwrite the progress doneView in the Group.
Click to show internal directories.
Click to hide internal directories.