Skip to content

Add edit command - #114

Merged
strokyl merged 1 commit into
mainfrom
add_edit_command
Sep 16, 2025
Merged

strokyl merged 1 commit into
mainfrom
add_edit_command

Conversation

@strokyl

@strokyl strokyl commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

This PR introduces a new edit command that allows users to modify a resources using their preferred text editor.

Overview

The edit command retrieves an existing resource, opens it in a text editor (using $EDITOR environment variable or falling back to nano), and automatically applies any changes after the user saves and exits the editor.
If the user save an empty nothing is done.

Usage

conduktor edit

Example

# Edit a user named "john.doe"
conduktor edit User john.doe

# Edit a topic named "my-topic" 
conduktor edit Topic my-topic --cluster local

@strokyl
strokyl force-pushed the add_edit_command branch 3 times, most recently from 29c608a to be028f2 Compare September 16, 2025 12:21

@qboileau qboileau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing update on README usage documentation

Comment thread cmd/edit.go
Comment thread cmd/editor_utils.go
Comment thread test_final_exec.sh
@strokyl

strokyl commented Sep 16, 2025

Copy link
Copy Markdown
Contributor Author

Missing update on README usage documentation

Added

@strokyl
strokyl merged commit 02927d0 into main Sep 16, 2025
7 checks passed
@strokyl
strokyl deleted the add_edit_command branch September 16, 2025 13: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.

2 participants