Skip to content

Zarf custom package file name when writing to local disk #2103

@alexandrulita91

Description

@alexandrulita91

Is your feature request related to a problem? Please describe.

I have a scenario where I need to determine the package file name that will result from invoking zarf package pull/create. My current approach involves parsing the command's output, but this method may become unreliable in the future due to changes.

Describe the solution you'd like

Add a new argument for the package pull/create commands, where the user is allowed to customize the package file name.
format = "%p-%n-%a-%v.tar.zst"

  • p -> package prefix
  • n -> metadata.name
  • a -> architecture
  • v -> version

Input / Output example:

  • "%p-%n-%a-%v.tar.zst" -> zarf-package-test-amd64-0.1.0.tar.zst
  • "my-package.tar.zst" -> my-package.tar.zst
  • "my-package.tar" -> my-package.tar

Describe alternatives you've considered

Add a new argument where the user can set the package file name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions