Skip to content

Commit

Permalink
remove commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
eiso committed Jan 19, 2018
1 parent 96ab93a commit a45d97d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Commands under development:
- [x] cp
- [ ] edit
- [ ] generate
- [ ] search
- [ ] grep


Expand Down
5 changes: 0 additions & 5 deletions cmd/mv.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package cmd

import (
"fmt"
// "os"
"path"
// "strings"

"github.com/eiso/gpass/utils"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -45,13 +43,10 @@ func (c *MvCmd) Execute(cmd *cobra.Command, args []string) error {

r := Cfg.Repository

// TODO: write a path building function; this is ugly and repeated everywhere
filename := args[0] + ".gpg"
new := args[1] + ".gpg"
pathPrev := path.Join(r.Path, filename)
pathNew := path.Join(r.Path, new)
//d := strings.Split(filename, string(os.PathSeparator))
//root := path.Join(r.Path, d[0])

if err := r.Load(); err != nil {
return err
Expand Down

0 comments on commit a45d97d

Please sign in to comment.