Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
6066c70e
Commit
6066c70e
authored
Nov 20, 2023
by
Jeffrey Morgan
Browse files
restore progress messages for older endpoints
parent
f10ac5de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cmd/cmd.go
cmd/cmd.go
+3
-3
No files found.
cmd/cmd.go
View file @
6066c70e
...
...
@@ -111,7 +111,7 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
bar
,
ok
:=
bars
[
resp
.
Digest
]
if
!
ok
{
bar
=
progress
.
NewBar
(
resp
.
Status
,
resp
.
Total
,
resp
.
Completed
)
bar
=
progress
.
NewBar
(
fmt
.
Sprintf
(
"pulling %s..."
,
resp
.
Digest
[
7
:
19
])
,
resp
.
Total
,
resp
.
Completed
)
bars
[
resp
.
Digest
]
=
bar
p
.
Add
(
resp
.
Digest
,
bar
)
}
...
...
@@ -184,7 +184,7 @@ func PushHandler(cmd *cobra.Command, args []string) error {
bar
,
ok
:=
bars
[
resp
.
Digest
]
if
!
ok
{
bar
=
progress
.
NewBar
(
resp
.
Status
,
resp
.
Total
,
resp
.
Completed
)
bar
=
progress
.
NewBar
(
fmt
.
Sprintf
(
"pushing %s..."
,
resp
.
Digest
[
7
:
19
])
,
resp
.
Total
,
resp
.
Completed
)
bars
[
resp
.
Digest
]
=
bar
p
.
Add
(
resp
.
Digest
,
bar
)
}
...
...
@@ -380,7 +380,7 @@ func PullHandler(cmd *cobra.Command, args []string) error {
bar
,
ok
:=
bars
[
resp
.
Digest
]
if
!
ok
{
bar
=
progress
.
NewBar
(
resp
.
Status
,
resp
.
Total
,
resp
.
Completed
)
bar
=
progress
.
NewBar
(
fmt
.
Sprintf
(
"pulling %s..."
,
resp
.
Digest
[
7
:
19
])
,
resp
.
Total
,
resp
.
Completed
)
bars
[
resp
.
Digest
]
=
bar
p
.
Add
(
resp
.
Digest
,
bar
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment