INNER CODE UNIT · Go
newBuildCommand
genuinetools/img · build.go:43
func newBuildCommand() *cobra.Command {
build := &buildCommand{
tags: newListValue().WithValidator(validateTag),
buildArgs: newListValue(),
labels: newListValue(),
secrets: newListValue(),
ssh: newListValue(),
platforms: newListValue(),
cacheFrom: newListValue(),
cacheTo: newListValue(),
}
cmd := &cobra.Command{
Use: "build [OPTIONS] PATH",
DisableFlagsInUseLine: true,
SilenceUsage: true,
Short: buildUsageShortHelp,