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

Add support for EDITOR with args to commands #1174

Merged
merged 8 commits into from
Oct 29, 2024

Conversation

joeriddles
Copy link
Contributor

closes #1173

Add support for EDITOR with args for commands that use EDITOR, like nats context edit.

This allows users to use something like code --wait for their EDITOR.

cli/util.go Outdated Show resolved Hide resolved
@joeriddles joeriddles requested a review from ripienaar October 25, 2024 03:05
cli/consumer_command.go Outdated Show resolved Hide resolved
@ripienaar
Copy link
Collaborator

Looking good, I am slowly moving these utils into https://github.com/nats-io/natscli/blob/main/internal/util/util.go and its test to not pollute this package so much, be great to see these helpers moved there then we're good.

Sorry wasn't clear in earlier review about internal

@ripienaar
Copy link
Collaborator

ripienaar commented Oct 29, 2024

Some typos also flagged by CI

@joeriddles
Copy link
Contributor Author

joeriddles commented Oct 29, 2024

Ah makes sense, I will move the new util functions over to internal/util.

Copy link
Collaborator

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ripienaar ripienaar merged commit e03c920 into nats-io:main Oct 29, 2024
2 checks passed
@joeriddles joeriddles deleted the joeriddles/support-editor-args branch October 29, 2024 14:47
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.

Support for EDITOR with args when editing context
2 participants