feat(cli): Support displaying storage values in base-2 [#2492] (#2502)

* Update display on repository summary

* Apply throughout app

* Situate units_test

* Update Command Line documentation

* Envar cleanup

* Rename to BytesString

* Restore envar string available for test

* Remove extraneous empty check and restore UIPreferences field for frontend

* PR: config bool cleanup and missed `BaseEnv`s

* Fix lint and test
This commit is contained in:
atom authored and GitHub committed 2022-10-24 19:00:36 -07:00
1 parent 7d47658cbb
commit c5efed01f4
40 files changed
+198 -149

No files matched your search

+3 -2
View File
@@ -288,6 +288,7 @@ type CLIInfo struct {
// UIPreferences represents JSON object storing UI preferences.
type UIPreferences struct {
Theme string `json:"theme"` // 'dark', 'light' or ''
PageSize int `json:"pageSize"` // A page size; the actual possible values will only be provided by the frontend
BytesStringBase2 bool `json:"bytesStringBase2"` // If `true`, display storage values in base-2 (default is base-10)
Theme string `json:"theme"` // 'dark', 'light' or ''
PageSize int `json:"pageSize"` // A page size; the actual possible values will only be provided by the frontend
}