mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
Surpress argument-limit errors and add TODO. (#603)
This commit is contained in:
parent
adc09a1ad1
commit
1362e40f53
14 changed files with 66 additions and 0 deletions
|
@ -77,6 +77,9 @@ func (s *spinner) Write(p []byte) (n int, err error) {
|
|||
return s.out.Write(p)
|
||||
}
|
||||
|
||||
// TODO: Upon changing this function, please refactor it to reduce the number of arguments to <= 5.
|
||||
//
|
||||
//revive:disable-next-line
|
||||
func spinTTY(out io.Writer, wg *sync.WaitGroup, stop *atomic.Bool, delay time.Duration, text string, showDots bool) {
|
||||
defer wg.Done()
|
||||
|
||||
|
@ -103,6 +106,9 @@ func spinTTY(out io.Writer, wg *sync.WaitGroup, stop *atomic.Bool, delay time.Du
|
|||
fmt.Fprint(out, showCursor)
|
||||
}
|
||||
|
||||
// TODO: Upon changing this function, please refactor it to reduce the number of arguments to <= 5.
|
||||
//
|
||||
//revive:disable-next-line
|
||||
func spinNoTTY(out io.Writer, wg *sync.WaitGroup, _ *atomic.Bool, _ time.Duration, text string, _ bool) {
|
||||
defer wg.Done()
|
||||
fmt.Fprintln(out, text+"...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue