Skip to content

pkg/cmd: inconsistent arguments ordering #1889

@AkihiroSuda

Description

@AkihiroSuda

func List(options types.ApparmorListCommandOptions, stdout io.Writer) error {

func Build(ctx context.Context, options *types.BuildCommandOptions, stdin io.Reader, stdout, stderr io.Writer) error {

func Pull(ctx context.Context, rawRef string, stdout io.Writer, stderr io.Writer, options types.PullCommandOptions) error {

Probably options should be consistently placed in the last.

stdout io.Writer should be probably right after ctx context.Context (if any). put into the options struct, and the nil value should imply os.Stdout

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions