sync-dotenv icon indicating copy to clipboard operation
sync-dotenv copied to clipboard

undefined not found

Open silverAndroid opened this issue 5 years ago • 4 comments

If no .env.example file is already created, the script just says undefined not found. I expected it to create the file automatically if it didn't already exist.

silverAndroid avatar May 24 '19 18:05 silverAndroid

Hey @silverAndroid, thanks for your contribution. I want to keep the goal of this lib focused and that is to sync environmental variables and not create them. I understand your expectations, but for others, .env.example may not be their default. See this

luqmanoop avatar May 25 '19 13:05 luqmanoop

Another thing to consider is, where (path) should the generated/created sample file be placed? The obvious answer will be the project root folder, but then again, this may not be what users want.

luqmanoop avatar May 25 '19 14:05 luqmanoop

In the case where they wanted the sample file to be created in a separate place, wouldn't they specify that as part of the --sample argument?

silverAndroid avatar May 25 '19 14:05 silverAndroid

I agree @silverAndroid

I'll look into your request but for now, I'm not making any promises.

luqmanoop avatar May 25 '19 14:05 luqmanoop