Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
briancain committed Nov 27, 2023
1 parent f067f92 commit 7c27d56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Editor CLI

A simple editor package for Golang CLIs. Similar to `kubectl patch`.
A simple editor package for Golang CLIs. Similar to `kubectl patch`. Edit
content from a remote server, or content locally on disk, and overwrite the
results using your favorite editor.

![](img/example-edit.gif)

Expand Down Expand Up @@ -30,6 +32,8 @@ if err != nil {
os.Exit(1)
}

// You could also send this edited content back to a server to update it.

// If changes, overwrite the original existing file
file, err := os.OpenFile(filePathToEdit, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
Expand Down

0 comments on commit 7c27d56

Please sign in to comment.