Documentation ¶
Overview ¶
Package mkuimage defines mkuimage flags and creation function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUimage ¶
func CreateUimage(l *llog.Logger, base []uimage.Modifier, tf *TemplateFlags, f *Flags, args []string) error
CreateUimage creates a uimage with the given base modifiers and flags, using args as the list of commands.
Types ¶
type CommandFlags ¶
type CommandFlags struct { NoCommands bool Builder string ShellBang bool Mod golang.ModBehavior BuildTags []string BuildOpts *golang.BuildOpts }
CommandFlags are flags related to Go commands to be built by mkuimage.
func (*CommandFlags) Modifiers ¶
func (c *CommandFlags) Modifiers(packages ...string) ([]uimage.Modifier, error)
Modifiers turns the flag values into uimage modifiers.
func (*CommandFlags) RegisterFlags ¶
func (c *CommandFlags) RegisterFlags(f *flag.FlagSet)
RegisterFlags registers flags related to Go commands being built.
type Flags ¶
type Flags struct { TempDir *string KeepTempDir bool Init *string Uinit *string Shell *string Files []string BaseArchive string ArchiveFormat string OutputFile string UseExistingInit bool Commands CommandFlags }
Flags are mkuimage command-line flags.
func (*Flags) RegisterFlags ¶
RegisterFlags registers flags.
type TemplateFlags ¶
TemplateFlags are flags for uimage config templates.
func (*TemplateFlags) Get ¶
func (tc *TemplateFlags) Get() (*templates.Templates, error)
Get turns template flags into templates.
func (*TemplateFlags) RegisterFlags ¶
func (tc *TemplateFlags) RegisterFlags(f *flag.FlagSet)
RegisterFlags registers template flags.
Click to show internal directories.
Click to hide internal directories.