Closed inkel closed 2 years ago
Currently we have two UI options:
But the ui.UI defines only one method: Display(ctx context.Context, disks unused.Disks, extraColumns []string) error. Here clearly the verbose mode option is missing, and we're relying on passing that to the different ui.UI implementation constructors.
ui.UI
Display(ctx context.Context, disks unused.Disks, extraColumns []string) error
In the future we also might introduce more UI options, so let's do the following changes:
ui.Options
UI.Display
Display(context.Context, ui.Options, unused.Disks) error
This was addressed in #19.
Currently we have two UI options:
But the
ui.UI
defines only one method:Display(ctx context.Context, disks unused.Disks, extraColumns []string) error
. Here clearly the verbose mode option is missing, and we're relying on passing that to the differentui.UI
implementation constructors.In the future we also might introduce more UI options, so let's do the following changes:
ui.Options
or similar struct to hold these configurationsUI.Display
signature to something likeDisplay(context.Context, ui.Options, unused.Disks) error