Skip to content

Commit

Permalink
Reorder first two paragraphs in part 2
Browse files Browse the repository at this point in the history
This is so the right snippet shows up in the home page.
  • Loading branch information
alondahari committed Jan 24, 2024
1 parent 7f1d0cf commit fd57c62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2024-01-24-npm-1password-plugin-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ categories:
- Open Source
---

_This is part 2 of a series of articles about adding an NPM shell plugin to 1Password. For more context, please check out [part 1]({% link _posts/2024-01-17-creating-npm-1password-plugin-part-1.md %})._

So we have our basic implementation of the plugin, now it's time to make it better. This next step is pretty short and straight forward. We need to describe in the plugin which commands in our NPM CLI would require auth from 1password.

_This is part 2 of a series of articles about adding an NPM shell plugin to 1Password. For more context, please check out [part 1]({% link _posts/2024-01-17-creating-npm-1password-plugin-part-1.md %})._

An example of when we don't need to authenticate is when the command includes the `--help` or `--version` flags. In our case, when running `npm uninstall` for example, we would never need to authenticate.

The relevant file here is `npm.go`, which now looks like this:
Expand Down

0 comments on commit fd57c62

Please sign in to comment.