Skip to content

Commit

Permalink
WithBinaryCommandsOpts
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Feb 15, 2024
1 parent c899e87 commit e3faa6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions uimage/uimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ func WithBinaryCommands(cmd ...string) Modifier {
return WithCommands(nil, builder.Binary, cmd...)
}

// WithBinaryCommandsOpts adds Go commands to compile as individual binaries
// and add to the archive.
//
// Allowed formats for cmd are documented in [WithCommands].
func WithBinaryCommandsOpts(gbOpts *golang.BuildOpts, cmd ...string) Modifier {
return WithCommands(gbOpts, builder.Binary, cmd...)
}

// WithOutput sets the archive output file.
func WithOutput(w initramfs.WriteOpener) Modifier {
return func(o *Opts) error {
Expand Down

0 comments on commit e3faa6a

Please sign in to comment.