Skip to content

Commit 3d4bde6

Browse files
authored
Merge pull request #384 from szymon/main
update(postgresql): add support for 'pgcli'
2 parents 331a885 + b4e7b26 commit 3d4bde6

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

plugins/postgresql/pgcli.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package postgresql
2+
3+
import (
4+
"github.com/1Password/shell-plugins/sdk"
5+
"github.com/1Password/shell-plugins/sdk/needsauth"
6+
"github.com/1Password/shell-plugins/sdk/schema"
7+
"github.com/1Password/shell-plugins/sdk/schema/credname"
8+
)
9+
10+
func Pgcli() schema.Executable {
11+
return schema.Executable{
12+
Name: "pgcli",
13+
Runs: []string{"pgcli"},
14+
DocsURL: sdk.URL("https://pgcli.com/docs"),
15+
NeedsAuth: needsauth.NotForHelpOrVersion(),
16+
Uses: []schema.CredentialUsage{
17+
{
18+
Name: credname.DatabaseCredentials,
19+
},
20+
},
21+
}
22+
}

plugins/postgresql/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func New() schema.Plugin {
1919
Psql(),
2020
Pg_dump(),
2121
Pg_restore(),
22+
Pgcli(),
2223
},
2324
}
2425
}

0 commit comments

Comments
 (0)