Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Apr 10, 2020
1 parent a1c33f6 commit d9ff07a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/commands/npm_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewNpmManager(log *logrus.Entry, osCommand *OSCommand, tr *i18n.Localizer,
}, nil
}

func (m *NpmManager) UnmarshalPackage(r io.Reader) (*Package, error) {
func (m *NpmManager) UnmarshalPackage(r io.Reader) (*PackageConfig, error) {
var pkgInput *PackageInput
d := json.NewDecoder(r)
if err := d.Decode(&pkgInput); err != nil {
Expand Down
6 changes: 6 additions & 0 deletions pkg/commands/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ type Repository struct {
}

type Package struct {
Config PackageConfig
Path string
Linked bool
}

type PackageConfig struct {
Name string
Version string
License string
Expand Down
6 changes: 0 additions & 6 deletions pkg/gui/packages_panel.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
package gui

import (

// "io"
// "io/ioutil"

// "strings"

"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazynpm/pkg/commands"
"github.com/jesseduffield/lazynpm/pkg/gui/presentation"
Expand Down

0 comments on commit d9ff07a

Please # to comment.