-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
switch quoting library #491
base: main
Are you sure you want to change the base?
Conversation
Hm, not sure about the open linter errors for running ESLint on my working copy presents that warning, only. In case it is fixing something locally, this does not result in a change accepted for commission by git CLI tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about the open linter errors
Maybe when updating pnpm lockfile eslint or prettier versions got updated, which now cause those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a lockfile version bump here.
I'll try updating this on main first to decrease the LOC in this PR.
@@ -55,11 +55,11 @@ | |||
"author": "Kimmo Brunfeldt", | |||
"license": "MIT", | |||
"dependencies": { | |||
"@cepharum/quoting-db": "^1.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a fresh new package, would you be keen on hosting and maintaining it from the open-cli-tools org? Seems it'd fit perfectly ;)
@@ -10,6 +10,8 @@ export class ExpandArguments implements CommandParser { | |||
constructor(private readonly additionalArguments: string[]) {} | |||
|
|||
parse(commandInfo: CommandInfo) { | |||
const configuration = getShellConfigurationSync(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked at the source of this function briefly, seems it defaults to the value of COMSPEC
.
Since cmd.exe is hardcoded for windows (source below), should the same be done here?
Lines 17 to 18 in e52d984
if (process.platform === 'win32') { | |
file = 'cmd.exe'; |
fixing #487
The PR is replacing the generic approach in shell-quote library with a different one based on character-by-character tests I've made resulting in a different quoting library.