mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-20 10:57:09 +00:00
New upstream version 1.5.0+ds1
This commit is contained in:
1 parent
29e4ea6ec0
commit
5c4f97f88e
324 files changed
+15360
-6668
No files matched your search
+1
-1
@@ -69,7 +69,7 @@ func (p *Progress) Flush() {
|
||||
}
|
||||
|
||||
// InitBar starts progressbar for count bytes or count items
|
||||
func (p *Progress) InitBar(count int64, isBytes bool) {
|
||||
func (p *Progress) InitBar(count int64, isBytes bool, barType aptly.BarType) {
|
||||
if p.bar != nil {
|
||||
panic("bar already initialized")
|
||||
}
|
||||
|
||||
+2
-2
@@ -3,10 +3,10 @@ package console
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
||||
// RunningOnTerminal checks whether stdout is terminal
|
||||
func RunningOnTerminal() bool {
|
||||
return terminal.IsTerminal(syscall.Stdout)
|
||||
return term.IsTerminal(syscall.Stdout)
|
||||
}
|
||||
Reference in new issue
Block a user