Giter Club home page Giter Club logo

Comments (5)

floer32 avatar floer32 commented on August 19, 2024

If this is accepted into the master, the Cookbook should be updated: the "Magic .env" section will become irrelevant, and best be replaced with a recommendation to put something like alias .env=autoenv_new in your .bash_aliases, etc.

from autoenv.

floer32 avatar floer32 commented on August 19, 2024

One possible problem with commit d676a0b is that it assumes that use_env has been defined. There are two ways that this could be made less confusing/assumptive to a user who hasn't looked at the wiki. (a) add a comment in the auto-generated .env file with the URL for the relevant Wiki; or (b) add the definition of use_env to the auto-generated .env file itself.

Solution B seems icky, so Solution A is implemented in commit 375d1c4.

from autoenv.

kennethreitz avatar kennethreitz commented on August 19, 2024

I don't really see the point of this when you can just run 'touch .env' ?

from autoenv.

floer32 avatar floer32 commented on August 19, 2024

Well, it's not just making an empty file. It creates a file with these contents:

# Assumes use_env. See https://github.com/kennethreitz/autoenv/wiki/Cookbook"
use_env $new_env_name

Where $new_env_name is the name of the present working directory. It's very simple, I thought that was the goal in using autoenv; simple ways to streamline switching projects and virtualenvs.

from autoenv.

dasJ avatar dasJ commented on August 19, 2024

I don't really see a point in this. Maybe it's just obsolete now.

from autoenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.