MCPcopy
hub / github.com/abiosoft/ishell / copyShellProgressBar

Function copyShellProgressBar

ishell.go:682–692  ·  view source on GitHub ↗
(s *Shell)

Source from the content-addressed store, hash-verified

680}
681
682func copyShellProgressBar(s *Shell) ProgressBar {
683 sp := s.progressBar.(*progressBarImpl)
684 p := newProgressBar(s)
685 p.Indeterminate(sp.indeterminate)
686 p.Display(sp.display)
687 p.Prefix(sp.prefix)
688 p.Suffix(sp.suffix)
689 p.Final(sp.final)
690 p.Interval(sp.interval)
691 return p
692}
693
694func getPosition() (int, int, error) {
695 fd := int(os.Stdout.Fd())

Callers 1

newContextFunction · 0.85

Calls 7

newProgressBarFunction · 0.85
IndeterminateMethod · 0.65
DisplayMethod · 0.65
PrefixMethod · 0.65
SuffixMethod · 0.65
FinalMethod · 0.65
IntervalMethod · 0.65

Tested by

no test coverage detected