-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit help to all ByteCount fields (#862)
* Add unit help to all ByteCount fields The help strings for API fields accepting a `ByteCount` have a dilemma. For users directly consuming the API, or via the SDK, we need to make it clear that they should use bytes as the type name suggests. For CLI, however, we want to encourage users to pass unit suffixes for ease of use. Help text that emphasizes bytes will lead users to write out values in bytes, an annoying and error-prone process. With oxidecomputer/omicron#6737 we have updated the doc strings on all external API `ByteCount` fields to include the string "(in bytes)". Add a function to update all CLI `ByteCount` args and remove that string, appending a help message explaining the units we accept. While we're at it, also harmonize all CLI-specific `ByteCount` doc strings. --------- Co-authored-by: Adam Leventhal <[email protected]>
- Loading branch information
1 parent
b5a932c
commit 81cfb3c
Showing
3 changed files
with
46 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters