Skip to content

Commit

Permalink
Merge pull request #13 from Dm3Ch/use_external_editor_library
Browse files Browse the repository at this point in the history
Move to external simplified editor library
  • Loading branch information
dm3ch authored Jul 4, 2019
2 parents b6fd870 + 0be3326 commit 1d32b10
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 1,225 deletions.
4 changes: 2 additions & 2 deletions cmd/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/dm3ch/git-profile-manager/editor"
editor "github.com/dm3ch/go-editor"
"github.com/spf13/cobra"
)

Expand All @@ -29,7 +29,7 @@ var editCmd = &cobra.Command{
os.Exit(1)
}

err = editor.NewDefaultEditor(nil).Launch(path)
err = editor.RunEditor(path)
if err != nil {
fmt.Printf("Error while editing profile %s file:\n", profileName)
fmt.Println(err)
Expand Down
Loading

0 comments on commit 1d32b10

Please sign in to comment.