Skip to content

update(postgresql): add support for 'pgcli' - #384

Merged
accraw merged 1 commit into
1Password:mainfrom
szymon:main
Oct 16, 2023
Merged

accraw merged 1 commit into
1Password:mainfrom
szymon:main

Conversation

@szymon

@szymon szymon commented Sep 27, 2023 •

Copy link
Copy Markdown
Contributor

Overview

Add support support for pgcli as alternative cli client for PostgreSQL.
Pgcli is a rich, postgres client with syntax highlighting, smart completion and multiline support.

More info about pgcli: https://www.pgcli.com/

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

How To Test

Since pgcli can use the same environment variables as psql it can be used as a psql replacement:

op plugin run -- pgcli

or we can configure it if psql is not already configured:

op plugin init pgcli

Changelog

PostgreSQL plugin now also supports pgcli as an alternative to psql.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (git commit -S --amend --no-edit) and force push them to this branch (git push --force-with-lease).

If you're new to commit signing, there are different ways to set it up:

Sign commits with gpg

Follow the steps below to set up commit signing with gpg:

  1. Generate a GPG key
  2. Add the GPG key to your GitHub account
  3. Configure git to use your GPG key for commit signing
Sign commits with ssh-agent

Follow the steps below to set up commit signing with ssh-agent:

  1. Generate an SSH key and add it to ssh-agent
  2. Add the SSH key to your GitHub account
  3. Configure git to use your SSH key for commit signing
Sign commits with 1Password

You can also sign commits using 1Password, which lets you sign commits with biometrics without the signing key leaving the local 1Password process.

Learn how to use 1Password to sign your commits.

Watch the demo
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (git commit -S --amend --no-edit) and force push them to this branch (git push --force-with-lease).

If you're new to commit signing, there are different ways to set it up:

Sign commits with gpg

Follow the steps below to set up commit signing with gpg:

  1. Generate a GPG key
  2. Add the GPG key to your GitHub account
  3. Configure git to use your GPG key for commit signing
Sign commits with ssh-agent

Follow the steps below to set up commit signing with ssh-agent:

  1. Generate an SSH key and add it to ssh-agent
  2. Add the SSH key to your GitHub account
  3. Configure git to use your SSH key for commit signing
Sign commits with 1Password

You can also sign commits using 1Password, which lets you sign commits with biometrics without the signing key leaving the local 1Password process.

Learn how to use 1Password to sign your commits.

Watch the demo
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (git commit -S --amend --no-edit) and force push them to this branch (git push --force-with-lease).

If you're new to commit signing, there are different ways to set it up:

Sign commits with gpg

Follow the steps below to set up commit signing with gpg:

  1. Generate a GPG key
  2. Add the GPG key to your GitHub account
  3. Configure git to use your GPG key for commit signing
Sign commits with ssh-agent

Follow the steps below to set up commit signing with ssh-agent:

  1. Generate an SSH key and add it to ssh-agent
  2. Add the SSH key to your GitHub account
  3. Configure git to use your SSH key for commit signing
Sign commits with 1Password

You can also sign commits using 1Password, which lets you sign commits with biometrics without the signing key leaving the local 1Password process.

Learn how to use 1Password to sign your commits.

Watch the demo
@szymon szymon changed the title Add pgcli support Sep 27, 2023
@cesarferradas

Copy link
Copy Markdown

Interested in this too, so following this PR. Would be really useful to have this as a plugin!

@szymon

szymon commented Oct 12, 2023

Copy link
Copy Markdown
Contributor Author

Hi @SimonBarendse, not sure what's the pr flow like here. Is it ok to mention you or someone else from the project or just wait for someone to notice?

@accraw accraw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and works as expected.

@accraw
accraw merged commit 3d4bde6 into 1Password:main Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants