Closed AliSoftware closed 6 years ago
I have a question about alias for custom path. Do you want to authorize creating custom alias for custom templates or not ?
Actually we have two resolution methods for templates. Template.find_by_path(path
) and Template.find_by_name(name)
, this last method implement alias resolution but not the first.
I have a question about alias for custom path. Do you want to authorize creating custom alias for custom templates or not ?
I wondered about that but I don't see how that would work or be useful.
I mean, if you have custom templates anyway: they'll only work for your machine / your project because you'll have to have the custom templates you created on the machine to run gyro
. So if that's templates that you created yourself, you can give them whatever name you want, right?
This new feature allows us to create alias names for existing templates.
Introducing
android-java
andswift4
template namesThis feature allowed us to:
android
toandroid-java
, for better consistency with the newandroid-kotlin
templateandroid
, so that using-t android
will still work (and not break the setup for existing users of gyro) and use the same template as if we used-t android-java
explicitlyswift4
pointing to the templateswift3
, since theswift3
template is also compatible with Swift 4 so using the alias allows for a more logical name in the invocation ofgyro
.This PR also closes #29