auth function
generate template for module auth
Implementation
void auth(String project, String template) {
String dir = '$project/lib/modules/auth';
switch (template) {
case 'bloc':
authBloc(project, dir);
break;
case 'cubit':
authCubit(project, dir);
break;
case 'get':
case 'getx':
authGetx(project, dir);
break;
case 'mobx':
authMobx(project, dir);
break;
case 'riverpod':
authRiverpod(project, dir);
break;
case 'provider':
default:
authProvider(project, dir);
break;
}
_service(project, dir);
}