Require --file flag in CLI GET/RANGE commands by default #1305

Open
opened 2025-12-28 17:22:31 +00:00 by sami · 3 comments
Owner

Originally created by @cthulhu-rider on GitHub (Dec 23, 2024).

currently, neofs-cli get|range commands writes received payload into stdout. User can specify --file to write payload by this path. But it is very easy to forget, im doing this again and again. If object is big, or big range is requsted, the terminal turns into a mess

Describe the solution you'd like

require --file flag by default. Treat stdout|stderr|? as corresponding streams

Describe alternatives you've considered

  1. default to ./<OID> path
  2. if data is under some limit, go as now. If bigger, print partially with abc...def up to the limit
  3. combine 1 and 2

Additional context

just got caught and was reviewing 65M of data

Originally created by @cthulhu-rider on GitHub (Dec 23, 2024). ## Is your feature request related to a problem? Please describe. currently, `neofs-cli get|range` commands writes received payload into stdout. User can specify `--file` to write payload by this path. But it is very easy to forget, im doing this again and again. If object is big, or big range is requsted, the terminal turns into a mess ## Describe the solution you'd like require `--file` flag by default. Treat `stdout|stderr|?` as corresponding streams ## Describe alternatives you've considered 1. default to `./<OID>` path 2. if data is under some limit, go as now. If bigger, print partially with `abc...def` up to the limit 3. combine 1 and 2 ## Additional context just got caught and was reviewing 65M of data
Author
Owner

@cthulhu-rider commented on GitHub (Dec 23, 2024):

mb also related to neofs-lens

@cthulhu-rider commented on GitHub (Dec 23, 2024): mb also related to neofs-lens
Author
Owner

@roman-khimov commented on GitHub (Dec 23, 2024):

It works like curl, not an issue to me.

@roman-khimov commented on GitHub (Dec 23, 2024): It works like `curl`, not an issue to me.
Author
Owner

@cthulhu-rider commented on GitHub (Dec 23, 2024):

i dont care about curl much here, i care about my terminal

@cthulhu-rider commented on GitHub (Dec 23, 2024): i dont care about `curl` much here, i care about my terminal
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-node#1305
No description provided.