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

fix(lease/shell): command with multiple arguments/flag to be properly processed by cobra #219

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

troian
Copy link
Member

@troian troian commented Mar 21, 2024

if lease shell command contains flags, cobra will treat them as own flags and mostly likely will fail. enclosing lease command into double brackets prevents it. in command itself it will be properly tokenized and honor inner double quotes if any

… processed by cobra

if lease shell command contains flags, cobra will treat them as own
flags and mostly likely will fail. enclosing lease command into double
brackets prevents it. in command itself it will be properly tokenized
and honor inner double quotes if any

Signed-off-by: Artur Troian <[email protected]>
@troian troian requested a review from boz as a code owner March 21, 2024 22:00
@troian troian merged commit 638994e into main Mar 21, 2024
12 checks passed
@troian troian deleted the lease-shell branch March 21, 2024 22:37
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.

1 participant