-
Notifications
You must be signed in to change notification settings - Fork 43
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
Exit code 0, but arbitrary error messages with no matches #44
Comments
It looks like you used `--`, so everything after that is taken literally, not as a flag, including your `-g`.
On Sep 18, 2023, at 6:48 AM, Costa Alexoglou ***@***.***> wrote:
Hey folks, The DX is a bit confusing when there are no matches, as the exit code is indeed 0 which is great, but the output for an example command: fastmod -- '--palette-(dark)-([\w-]+)' '--theme-${1}-palette-${2}' -g '!base. css' -g '*. {tsx,ts,js,jsx,css,pcss}'
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
ZjQcmQRYFpfptBannerEnd
Hey folks,
The DX is a bit confusing when there are no matches, as the exit code is indeed 0 which is great, but the output for an example command:
fastmod -- '--palette-(dark)-([\w-]+)' '--theme-${1}-palette-${2}' -g '!base.css' -g '*.{tsx,ts,js,jsx,css,pcss}' ./src
would be:
Warning: -g: No such file or directory (os error 2)
Warning: !base.css: No such file or directory (os error 2)
Warning: -g: No such file or directory (os error 2)
Warning: *.{tsx,ts,js,jsx,css,pcss}: No such file or directory (os error 2)
which took me quite some time to figure out that indeed it run smoothly, the selectors just did not match anything.
Am I doing something wrong myself maybe?
—
Reply to this email directly, view it on GitHub<#44>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAAIK6B5A4XXKR6Q4YYNLVTX3BGKLANCNFSM6AAAAAA44YHDFQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@swolchok without the double hyphen I get to an issue:
Then to solve this I try to escape the hyphens: fastmod '\-\-palette-(dark)-([\w-]+)' '\-\-theme-${1}-palette-${2}' -g '!base.css' -g '*.{tsx,ts,js,jsx,css,pcss}' ./src and this one leads to weird replacement - color: "var(--palette-dark-neutral-bg)",
+ color: "var(\-\-theme-dark-palette-neutral-bg)", Do you have any clue how this one can be resolved? |
I think moving the flags before the double hyphen should do it: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey folks,
The DX is a bit confusing when there are no matches, as the exit code is indeed
0
which is great, but the output for an example command:fastmod -- '--palette-(dark)-([\w-]+)' '--theme-${1}-palette-${2}' -g '!base.css' -g '*.{tsx,ts,js,jsx,css,pcss}' ./src
would be:
which took me quite some time to figure out that indeed it run smoothly, the selectors just did not match anything.
Am I doing something wrong myself maybe?
Edit:
I get this only on times that I need to prepend with
--
to avoid throwing with--palette
for exampleThe text was updated successfully, but these errors were encountered: