feat: add securefile download via name

Description

  • Add securefile download via name

This capability will be extremely useful to replace the "get the file id, then download" logic that is the norm currently.

The default behaviour of --name will result in the name of the file passed being what is downloaded to the current directory

Resolves #8028 (closed)

How has this been tested?

  • tested via the tests
  • built the binary and tested with
    • ./bin/glab securefile download -R myrepo --name my-real-file - happy path (file actually exists in gitlab)
    • ./bin/glab securefile download -R myrepo --name my-fake-file - unhappy path (file doesn't exist)
Edited by Jack

Merge request reports

Loading