Skip to content

Commit

Permalink
Merge pull request #197 from fgiudici/file_name_option
Browse files Browse the repository at this point in the history
Fix --name option in "store add file" command
  • Loading branch information
amartin120 authored Feb 27, 2024
2 parents 2779c64 + 8120537 commit bb2a8bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/hauler/cli/store/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit bb2a8bf

Please sign in to comment.