Skip to content

Commit c32b027

Browse files
authored
Merge pull request #62 from dmitshur/module-mode
start building in module mode
2 parents dab18ec + d2f4c13 commit c32b027

23 files changed

Lines changed: 54 additions & 837 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gopkg.lock

Lines changed: 0 additions & 58 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ stores, retrieves, generates, and synchronizes passwords and files securely and
55

66
passgo is meant to be secure enough that you can publicly post your vault. I've started publishing my passwords [here](https://github.com/ejcx/passwords.git).
77

8-
## Getting started with passgo
8+
## Installation
9+
10+
`passgo` requires Go version 1.11 or later.
911

1012
```bash
11-
go get -u github.com/ejcx/passgo
13+
(cd; GO111MODULE=on go install github.com/ejcx/passgo/v2)
1214
```
1315

14-
Next create a vault and specify the directory to store passwords in. You will be prompted for your master password:
16+
## Getting started with passgo
17+
18+
Create a vault and specify the directory to store passwords in. You will be prompted for your master password:
1519

1620
```bash
1721
$ passgo init

edit/edit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616

1717
"golang.org/x/crypto/nacl/box"
1818

19-
"github.com/ejcx/passgo/pc"
20-
"github.com/ejcx/passgo/pio"
19+
"github.com/ejcx/passgo/v2/pc"
20+
"github.com/ejcx/passgo/v2/pio"
2121
)
2222

2323
// Remove is used to remove a site entry from the password vault given a path.

generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package generate
33
import (
44
"log"
55

6-
"github.com/ejcx/passgo/pc"
6+
"github.com/ejcx/passgo/v2/pc"
77
)
88

99
var (

go.mod

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module github.com/ejcx/passgo/v2
2+
3+
go 1.12
4+
5+
require (
6+
github.com/atotto/clipboard v0.1.1
7+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
8+
github.com/spf13/cobra v0.0.3
9+
github.com/spf13/pflag v1.0.3 // indirect
10+
golang.org/x/crypto v0.0.0-20190222235706-ffb98f73852f
11+
golang.org/x/sys v0.0.0-20190222171317-cd391775e71e // indirect
12+
)

go.sum

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
github.com/atotto/clipboard v0.1.1 h1:WSoEbAS70E5gw8FbiqFlp69MGsB6dUb4l+0AGGLiVGw=
2+
github.com/atotto/clipboard v0.1.1/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
3+
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
4+
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
5+
github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
6+
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
7+
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
8+
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
9+
golang.org/x/crypto v0.0.0-20190222235706-ffb98f73852f h1:qWFY9ZxP3tfI37wYIs/MnIAqK0vlXp1xnYEa5HxFSSY=
10+
golang.org/x/crypto v0.0.0-20190222235706-ffb98f73852f/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
11+
golang.org/x/sys v0.0.0-20190222171317-cd391775e71e h1:oF7qaQxUH6KzFdKN4ww7NpPdo53SZi4UlcksLrb2y/o=
12+
golang.org/x/sys v0.0.0-20190222171317-cd391775e71e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

initialize/initialize.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"log"
77
"os"
88

9-
"github.com/ejcx/passgo/pc"
10-
"github.com/ejcx/passgo/pio"
9+
"github.com/ejcx/passgo/v2/pc"
10+
"github.com/ejcx/passgo/v2/pio"
1111
"golang.org/x/crypto/nacl/box"
1212
)
1313

insert/insert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"io/ioutil"
99
"log"
1010

11-
"github.com/ejcx/passgo/pc"
12-
"github.com/ejcx/passgo/pio"
11+
"github.com/ejcx/passgo/v2/pc"
12+
"github.com/ejcx/passgo/v2/pio"
1313
"golang.org/x/crypto/nacl/box"
1414
)
1515

0 commit comments

Comments
 (0)