slimphp / Slim-Console

Slim Framework Console
https://slimframework.com
MIT License
28 stars 12 forks source link

Feature/init command #22

Closed ABGEO closed 4 years ago

ABGEO commented 4 years ago

Resolves #3

I implemented the initialization command and profile structure. I decided to use a separate directory for each profile. So each Slim init profile must:

This structure allows us to easily define new profiles and use them. We can also publish profiles on Packagist and require them using composer.

I implemented Blank profile with following features:

After the review I will write tests.

l0gicgate commented 4 years ago

@ABGEO I won’t be able to review until the weekend. I have other engagements at the moment.

ABGEO commented 4 years ago

Sorry guys, I have a lot of work and I can’t finish this now.

l0gicgate commented 4 years ago

Great work @ABGEO we're getting there slowly, no rush!

l0gicgate commented 4 years ago

@ABGEO The init command doesn't seem to work for me. It asks me for composer information: package name, description, license. But then it doesn't ask me for the dependencies I want to install.

The command I run is:

bin/slim init -d new-project
ABGEO commented 4 years ago

bin/slim init -d new-project

@l0gicgate the -d (Default) flag prevents us from choosing dependencies. It installs default packages. You can run this command without -d and it will ask you to set up dependencies: bin/slim init new-project. Also, please see the help message: bin/slim init --help

ABGEO commented 4 years ago

@l0gicgate

The following messages can we reformat them:

Done.

As for choices can we start the lists at 1 instead of 0:

No, this is not possible in the Symfony console.

l0gicgate commented 4 years ago

Great work @ABGEO! Thank you for this contribution. Sorry for taking so long to merge this.

ABGEO commented 4 years ago

Thanks @l0gicgate! It's a great pleasure to work with you. I'll try to help with other things too :)