Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: delimiter flag for export command #1822

Closed

Conversation

nettijoe96
Copy link

Description 📣

Creates new flags delimit and quota for the export command. delimit is currently only for CSV format. quota is only for .env formats. There are 2 flags rather than 1 because default handling is clearer and it allows for the possibility to extend delimit flag to .env for changing = in the future. Flags are permissive -- if format is not CSV or .env and a flag is provided, the flag is ignored and the command doesn't fail

Resolves: #1103

Type ✨

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

Tests 🛠️

See unit tests in cli/cmd_test.go

Manually:

Screenshot 2024-05-13 at 3 14 21 PM

@maidul98
Copy link
Collaborator

Hey @nettijoe96 custom formatting outisde of the predefined ones can be achieved with templates https://infisical.com/docs/cli/commands/export#infisical-export:template. I believe you can achieve what you added for this PR with templates. Let me know if you think otherwise.

@nettijoe96
Copy link
Author

nettijoe96 commented May 14, 2024

@maidul98

Agreed!

@nettijoe96 nettijoe96 closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibility to export env-s with different quota character
2 participants