package editor
import "github.com/google/go-containerregistry/internal/editor"
Package editor implements a simple interface for interactive file editing. It most likely does not work on windows.
Index ¶
Functions ¶
func Edit ¶
Edit opens a temporary file in the default editor (per $EDITOR, falling back to "vi") with the contents of the given io.Reader and a filename ending in the given extension (to give a hint to the editor for syntax highlighting).
The contents of the edited file are returned, and the temporary file removed.
Source Files ¶
- Version
- v0.20.3 (latest)
- Published
- Jan 15, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 21 hours ago –
Tools for package owners.