contributte / console

:boom: Best minimal console (symfony/console) to Nette Framework (@nette)
https://contributte.org/packages/contributte/console.html
MIT License
91 stars 32 forks source link

Basic commands [idea] #3

Closed f3l1x closed 6 years ago

f3l1x commented 7 years ago

I'm just thinking about some basic commands.

Assets

Cache

Database

DI

NEON

Solved via Neonizer - https://github.com/contributte/neonizer.

Latte

Router

Security

Utils

Validator (really?)

f3l1x commented 7 years ago

What do you think @enumag @tomasvotruba?

TomasVotruba commented 7 years ago

Good idea :+1: . I'd personally appreciate command alternative for what I already do manually:

Nice to have:

enumag commented 7 years ago

Looks good. It would be nice to have a command(s) to precompile dic, latte templates, etc. when deploying to production (and not wait for the first request). But I'm not sure how to compile the normal DIC in CLI mode.

mabar commented 6 years ago

nette:cache:purge - I would preffer an cache cleaner extension and command as bridge only. Cache in temp/ directory is not the only one so interface for cleaning from redis, memcache, database etc. would be nice.

interface Cleaner {
    public function clean();
}

nette:cache:warmup - Not sure about DI, but templates should not be difficult (if you are not using all templates, like I don't do, it becomes very inefficient). Find all template files (eg. trhrough finder) and call $templateFactory->createTemplate()->getLatte()->warmupCache($fileName);

f3l1x commented 6 years ago

Something is growing:

selection_001

f3l1x commented 6 years ago

We'are working on that here: https://github.com/contributte/console-extra

f3l1x commented 6 years ago

I'm closing it, we're done here. 🎉

Take a look at https://github.com/contributte/console-extra