Skip to content

feat: add interactive 'minder profile edit' command#6355

Open
DharunMR wants to merge 1 commit intomindersec:mainfrom
DharunMR:feat-minder-profile
Open

feat: add interactive 'minder profile edit' command#6355
DharunMR wants to merge 1 commit intomindersec:mainfrom
DharunMR:feat-minder-profile

Conversation

@DharunMR
Copy link
Copy Markdown
Contributor

@DharunMR DharunMR commented Apr 13, 2026

Summary

This PR introduces the minder profile edit command, allowing users to fetch a profile, modify it in their local text editor, and apply changes in a single interactive workflow.

  • Implemented a robust lookup system that checks $VISUAL -> $EDITOR -> system path (searching for nano, vim, nvim, vi, or emacs) using exec.LookPath.

  • The implementation ensures that critical fields such as Id, Context, Type, and Version are preserved from the original fetch. This prevents validation errors if the user accidentally deletes these fields during the editing session.



Before
swappy-20260413_185940

After
swappy-20260413_190001

@DharunMR DharunMR requested a review from a team as a code owner April 13, 2026 13:36
Signed-off-by: DharunMR <maddharun56@gmail.com>
@DharunMR DharunMR force-pushed the feat-minder-profile branch from 58fc5b5 to 65dc745 Compare April 13, 2026 13:43
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 13, 2026

Coverage Status

coverage: 59.387% (-0.003%) from 59.39% — DharunMR:feat-minder-profile into mindersec:main

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.

minder profile edit

2 participants