You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was doing some testing of the Object Store feature and didn't understand why I didn't see the progress bars.
I ran: nats object put <bucket> <file> and nats object put --progress <bucket> <file> expecting to see a progress bar but did not. And yes, my file was over 20480 bytes.
To my surprise, running nats object put --no-progress <bucket> <file> makes the progress bar appear!
Was doing some testing of the Object Store feature and didn't understand why I didn't see the progress bars.
I ran:
nats object put <bucket> <file>
andnats object put --progress <bucket> <file>
expecting to see a progress bar but did not. And yes, my file was over 20480 bytes.To my surprise, running
nats object put --no-progress <bucket> <file>
makes the progress bar appear!I've traced it to the lines
natscli/cli/object_command.go
Line 85 in 1057211
natscli/cli/object_command.go
Line 97 in 1057211
The flag is named
--progress
with a default oftrue
but the variable it's assigned to is namednoProgress
and it's used in that capacity on linenatscli/cli/object_command.go
Line 486 in 1057211
natscli/cli/object_command.go
Line 562 in 1057211
I'll be happy to provide a PR with a fix, but I'm a little uncertain if the intention was to have progress enabled or disabled by default.
The text was updated successfully, but these errors were encountered: