Skip to content

pkg/api/types: consistenly include or exclude stdout and stderr writers #1856

@AkihiroSuda

Description

@AkihiroSuda

The current types are inconsistent; some types contain the io.Writer for stdout, some types does not.

type ApparmorListCommandOptions struct {
// Only display profile names
Quiet bool
// Format the output using the given go template
Format string
// Writer is the output writer
Writer io.Writer
}

type NetworkListCommandOptions struct {
// GOptions is the global options
GOptions GlobalCommandOptions
// Quiet only show numeric IDs
Quiet bool
// Format the output using the given Go template, e.g, '{{json .}}', 'wide'
Format string
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions