|
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
nerdctl/pkg/cmd/apparmor/list_linux.go
Line 32 in 35bb03e
nerdctl/pkg/cmd/builder/build.go
Line 45 in 35bb03e
nerdctl/pkg/cmd/image/pull.go
Line 40 in 35bb03e
Probably
optionsshould be consistently placed in the last.stdout io.Writershould beprobably right afterput into the options struct, and the nil value should implyctx context.Context(if any).os.Stdout