Skip to content
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

Remove unnecessary trims from CLI commands #5031

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Remove unnecessary trims from CLI commands #5031

merged 1 commit into from
Jun 11, 2024

Conversation

mat-if
Copy link
Contributor

@mat-if mat-if commented Jun 10, 2024

Summary

oclif already trims by default. By adding these trims, we're overriding the behavior of oclif and closing unintentional escape hatches for cases where a leading/trailing space might be intended when wrapping the arg or flag in quotation marks.

There are a few more places where trim is being used in the CLI commands, but they are generally being used as part of more complex split functions, or are deep enough down the call stack that I didn't want to potentially cause issues for now.

Testing Plan

Documentation

N/A

Breaking Change

N/A

oclif already trims by default. By adding these trims, we're overriding the
behavior of oclif and closing unintentional escape hatches for cases where a
leading/trailing space might be intended when wrapping the arg or flag in
quotation marks.
@mat-if mat-if merged commit 8565bfd into staging Jun 11, 2024
10 checks passed
@mat-if mat-if deleted the mat/trim-less branch June 11, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants