Merge pull request #197 from fgiudici/file_name_option

Fix --name option in "store add file" command
This commit is contained in:
Adam Martin
2024-02-27 08:33:09 -05:00
committed by GitHub

View File

@@ -33,7 +33,9 @@ func AddFileCmd(ctx context.Context, o *AddFileOpts, s *store.Layout, reference
cfg := v1alpha1.File{
Path: reference,
}
if len(o.Name) > 0 {
cfg.Name = o.Name
}
return storeFile(ctx, s, cfg)
}