feat: add environment format for variable export

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

Description

  • feat: add environment format for variable export

Related Issues

Resolves #7561 (closed) gitlab-org/cli#7561

How has this been tested?

Modified commands/variable/export/export_test.go to test for json (existing format) and new env formats. Verified output is:

KEY1=value1
KEY2=value2

As expected (see screenshots)

Screenshots (if appropriate):

Output of Test_exportRun_project image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Anders Parslov

Merge request reports

Loading