feat: Add --name option to override name in output (#1269)

This commit is contained in:
Justin Chadwell
2022-11-10 14:03:23 -05:00
committed by GitHub
parent 949cff158d
commit 10f43d75e0
10 changed files with 68 additions and 20 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func Run(ctx context.Context, app *config.Application, args []string) error {
// could be an image or a directory, with or without a scheme
userInput := args[0]
si, err := source.ParseInput(userInput, app.Platform, true)
si, err := source.ParseInputWithName(userInput, app.Platform, true, app.Name)
if err != nil {
return fmt.Errorf("could not generate source input for packages command: %w", err)
}