-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add equivalent to --all cli flag to ignore ts-to-zod config at all #211
Comments
Hello @vladdcom, Do you mean that it would just ignore this prompt:
and be the equivalent of selecting the last option? |
yeah, exactly the equivalent of selecting the last option |
In that case, you must add arguments to CLI call, right? At least an |
per repo yarn ts-to-zod --all -> use the ts-to-zod config "Don't use the config" in the prompt is working the same way |
In terms of developer experience, I'm wondering if we actually need the Why not skip config when calling
? My point being that all the information needed to perform the action is in the command. I think your request is very valid, but I feel that adding a new flag is not the best DevExp. |
I have ts-to-zod config in my repo and if I run this command I'm gonna get into a interactive mode of the prompt. But I want to disable config by one command |
Yes, I think I understand that. |
got it, the idea is good |
@tvillaren sounds good. |
Yep, had the same thought 😄 |
How can I tell the CLI to use the config file? It seems it needs me to duplicate the input-output files in the CLI. |
@aminya: if you have a |
@tvillaren I tried that in a mono-repo, but it did not work. Could you add more documentation on this? Also, the CLI doesn't have any indication of this happening despite using |
Feature description
In cli prompt the program has option "Don't use the config" but i cannot use it through inline command
ts-to-zod --none
orts-to-zod --config=none
doesnt workInput
Output
ts-to-zod ignore ts-to-zod config and use passed inline data
The text was updated successfully, but these errors were encountered: