SYNC ALL ENVS
SYNC ALL ENVS is an extension that helps you sync all your *.env files based on a template. FeaturesThere are 3 commands available on this extension: 1. Sync ALL *.env filesThis function allows you to sync all your *.env files in your working directory with the .env template. 2. Sync selected *.env fileThis function allows you to sync only a selected *.env file in your working directory with .env template. 3. Sync family .env filesThis function allows you to sync files from the same family (root name).
To create families, keep the same root name and separate the name with a '-'. Example: In a repo where there are the following files:
There are 2 families: After selecting which family to sync, the family files will be synced with the .env parent file of that family 4. Get .env diff with unique keys comparing 2 env filesThis command will request for 2 inputs:
The command will generate a copy of the target file with only the keys that are different from the reference .env file. RequirementsThe template env file and the target files must be located on the working directory. By default, the template env file is named By default, the target env filename pattern is Extension SettingsThis extension contributes the following settings:
Release Notes0.0.1Initial release of SyncAllEnvs with sync all *.env files, sync selected *.env file and allowing user to customize template env file and target env files pattern 0.0.2Fixing bug where values with 0.0.3Adding capability to sync family .env files 0.0.4Adding capability to generate env file with only unique keys different from selected template Enjoy! |