Skip to content

fix: improve command argument handling in ExecuteCommand function #16

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

teemow
Copy link
Member

@teemow teemow commented Jun 27, 2025

This pull request updates the ExecuteCommand method in the internal/teleport/client.go file to improve how command arguments are handled. The key change is the introduction of logic to split the command string into individual arguments before appending additional arguments.

Improvements to command argument handling:

  • internal/teleport/client.go: Updated the ExecuteCommand method to split the command string into individual arguments using strings.Fields, ensuring better handling of multi-word commands. This replaces the previous approach where the command string was treated as a single argument.

@teemow teemow merged commit 1aae70e into main Jun 27, 2025
1 check passed
@teemow teemow deleted the teemow-fix-arguments branch June 27, 2025 17:07
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