Giter Site home page Giter Site logo

Comments (11)

jasonlewis avatar jasonlewis commented on May 4, 2024

Honestly I think that's just lazy. ⛵

See what others think though.

from framework.

iccle avatar iccle commented on May 4, 2024

I guess if your only writing a single package, i was just thinking it would be nice not to have to enter the same information again and again.

from framework.

jasonlewis avatar jasonlewis commented on May 4, 2024

Copy paste! :)

from framework.

frankmayer avatar frankmayer commented on May 4, 2024

I agree with @jasonlewis that it's kind of very low priority, if at all.
Having said that, it's kind of lazy, but aren't we all? :D
If we weren't, there wouldn't be code completion in editors, etc... ;)
I haven't dived into artisan commands yet, but couldn't this functionality be a separate package, if not in the base distribution? Maybe @iccle could implement that?

from framework.

franzliedke avatar franzliedke commented on May 4, 2024

I remember seeing an issue about adding a config file with default values for name and email - that would probably be an easier way and would still fulfill your need, right?

from framework.

daylerees avatar daylerees commented on May 4, 2024

Hmmm, can't imagine this being a priority.

from framework.

iccle avatar iccle commented on May 4, 2024

I didnt expect it to be priorty, and dont think its particularly lazy i prefer to enter data once and re-use it instead of re-entering it.

My thinking was how often do i change my name or email? Never. So it would be nice for workbench to remember me saving me from pesky typos as i repeatedly enter my information. This could be extended to store your favorite licence choice for your composer.json.

Other artisan commands may benefit from some sort of persistant/global config, eg it would be nice to set the default namespace used for controllers once (for my project or whatever) then have commands that use --namespace read it in if no namespace is specified on the command line.

Im still feeling my way around the new code, may look into making something like this once i find my feet.

from framework.

patrickheeney avatar patrickheeney commented on May 4, 2024

I think this is a great idea. I think it just needs to be a simple config file. Artisan would first check if the config file exists and use those settings unless overridden in the command. If no config file or not in the command then prompt for it.

As iccle mentions, other commands could benefit from this. For example migrate:make, you could change the path from app/migrations and not have to retype it every time. New packages could install config defaults for commands as well. For example with laravel-bob bundle you could always have bob controller use --blade and --restful.

Definitely not high priority, however Its the little things that make laravel so great.

from framework.

Anahkiasen avatar Anahkiasen commented on May 4, 2024

+1 on making it a config entry.

from framework.

GaryJones avatar GaryJones commented on May 4, 2024

Since your typing / config files for name and emails are just populating stubs, could Artisan not be made to check a custom stubs directory outside of all projects for all of its commands. You could then also configure, for instance, phpunit.xml not to have colors set to true (as that makes it all screwy in Windows), have the service provider and controller stubs start off as PSR-2, custom travis config etc.?

from framework.

taylorotwell avatar taylorotwell commented on May 4, 2024

This is implemented via the new workbench configuration file.

from framework.

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.