Skip to content

Commit

Permalink
Merge pull request #12 from mrinjamul/v1.0.2
Browse files Browse the repository at this point in the history
Fix: search cmd improved
  • Loading branch information
mrinjamul authored Feb 6, 2021
2 parents 76c1941 + 3ea46e4 commit e8453f6
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 27 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Using Go Password Manager is easy. First, use `go get` to install the latest ver
For Linux,

```sh
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.1/gpassmanager-linux-amd64-v1.0.1.tar.gz
tar xvf gpassmanager-linux-amd64-v1.0.1.tar.gz
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.2/gpassmanager-linux-amd64-v1.0.2.tar.gz
tar xvf gpassmanager-linux-amd64-v1.0.2.tar.gz
chmod +x gpassmanager
sudo mv gpassmanager /usr/bin
```
Expand All @@ -55,13 +55,13 @@ You need to have `tar wget`. To install simply type `pkg install tar wget`

```sh
cd ~
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.1/gpassmanager-linux-arm-v1.0.1.tar.gz
tar xvf gpassmanager-linux-arm-v1.0.1.tar.gz
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.2/gpassmanager-linux-arm-v1.0.2.tar.gz
tar xvf gpassmanager-linux-arm-v1.0.2.tar.gz
chmod +x gpassmanager
mv gpassmanager ../usr/bin
```

[Note: if new version available you need to download and install by the same process. The above instructions will install v1.0.1 .]
[Note: if new version available you need to download and install by the same process. The above instructions will install v1.0.2 .]

## Usage

Expand Down
1 change: 0 additions & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/change.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/export.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/import.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/license.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/remove.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/reset.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
3 changes: 1 addition & 2 deletions cmd/search.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down Expand Up @@ -88,7 +87,7 @@ func searchRun(cmd *cobra.Command, args []string) {
// prints found results
printableData := "\n"
for id, account := range accounts {
if strings.Contains(account.AccountName, args[0]) || strings.Contains(account.Notes, args[0]) {
if strings.Contains(account.AccountName, args[0]) || strings.Contains(account.UserName, args[0]) || strings.Contains(account.Notes, args[0]) {
founds++
isFound = true
printableData += "[" + strconv.Itoa(id+1) + "]" + "\t" + "Account: " + account.AccountName + "\n"
Expand Down
1 change: 0 additions & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
1 change: 0 additions & 1 deletion cmd/view.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Package cmd ...
/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
10 changes: 5 additions & 5 deletions docs/_includes/03-body.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Using Go Password Manager is easy. First, use `go get` to install the latest ver
For Linux,

```sh
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.1/gpassmanager-linux-amd64-v1.0.1.tar.gz
tar xvf gpassmanager-linux-amd64-v1.0.1.tar.gz
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.2/gpassmanager-linux-amd64-v1.0.2.tar.gz
tar xvf gpassmanager-linux-amd64-v1.0.2.tar.gz
chmod +x gpassmanager
sudo mv gpassmanager /usr/bin
```
Expand All @@ -27,13 +27,13 @@ You need to have `tar wget`. To install simply type `pkg install tar wget`

```sh
cd ~
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.1/gpassmanager-linux-arm-v1.0.1.tar.gz
tar xvf gpassmanager-linux-arm-v1.0.1.tar.gz
wget https://github.com/mrinjamul/gpassmanager/releases/download/v1.0.2/gpassmanager-linux-arm-v1.0.2.tar.gz
tar xvf gpassmanager-linux-arm-v1.0.2.tar.gz
chmod +x gpassmanager
mv gpassmanager ../usr/bin
```

[Note: if new version available you need to download and install by the same process. The above instructions will install v1.0.1 .]
[Note: if new version available you need to download and install by the same process. The above instructions will install v1.0.2 .]

## Get Started

Expand Down
2 changes: 1 addition & 1 deletion gpm/gpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func GetHomeDir() string {

// GetVersion returns version name, and code
func GetVersion() string {
var version = "1.0.1"
var version = "1.0.2"
return version
}

Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*Package main ...
* A Simple CLI password Manager
*/

/*
Copyright © 2020 Injamul Mohammad Mollah
Expand Down
8 changes: 4 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: gpassmanager
base: core18 # the base snap is the execution environment for this snap
version: "1.0.1" # just for humans, typically '1.2+git' or '1.3.2'
summary: CommandLine Password Manager # 79 char long summary
version: "1.0.2"
summary: CommandLine Password Manager
description: |
A Commandline application for managing your passwords securely.
It's a very secure password manager.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
grade: stable
confinement: strict

apps:
gpassmanager:
Expand Down

0 comments on commit e8453f6

Please sign in to comment.