Skip to content

Add 1password-cli Feature - #16

Open
ghughes610 wants to merge 1 commit into
mainfrom
gh-devcontainer-feature-1password-cli
Open

ghughes610 wants to merge 1 commit into
mainfrom
gh-devcontainer-feature-1password-cli

Conversation

@ghughes610

@ghughes610 ghughes610 commented Nov 10, 2026 •

Copy link
Copy Markdown

Adding a feature to allow us to use 1Password CLI in some stuff. This should make it easier to do other stuff. If you want to know more about stuff please message me.

@ghughes610 ghughes610 changed the title Add 1password-cli feature Add 1password-cli Feature Nov 10, 2026
@ghughes610
ghughes610 marked this pull request as ready for review November 10, 2026 20:48
@ghughes610
ghughes610 requested a review from a team as a code owner November 10, 2026 20:48
@jgarber623-cargosense jgarber623-cargosense self-assigned this Nov 12, 2026

@jgarber623-cargosense jgarber623-cargosense 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.

Overall, looks good. Posted a few comments with suggestions.

Comment on lines +9 to +10
"ghcr.io/devcontainers/features/common-utils",
"ghcr.io/CargoSense/devcontainer-features/apt-packages"

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.

Suggested change
"ghcr.io/devcontainers/features/common-utils",
"ghcr.io/CargoSense/devcontainer-features/apt-packages"
"ghcr.io/devcontainers/features/common-utils"

The Feature's install.sh handles its own installation dependency checking. Additionally, the common-utils Feature also installs curl and gnupg, so we should be okay with removing the apt-packages Feature from the list.

The installsAfter configuration is also described as a "soft dependency" in the documentation. Seems it influences installation order but doesn't prescribe it. 🤷🏻


## OS Support

This Feature should work on recent versions of Debian/Ubuntu and Linux distributions using the [apt](https://wiki.debian.org/AptCLI) management tool, on `amd64` and `arm64`.

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.

Suggested change
This Feature should work on recent versions of Debian/Ubuntu and Linux distributions using the [apt](https://wiki.debian.org/AptCLI) management tool, on `amd64` and `arm64`.
This Feature should work on recent versions of Debian/Ubuntu and Linux distributions using the [apt](https://wiki.debian.org/AptCLI) management tool and on architectures for which 1Password publishes packages.

Practically, amd64 and arm64 are what we concern ourselves with, but the 1P APT repo publishes packages for other architectures, too.

Comment on lines +12 to +15

## Options

This Feature has no options. It installs the latest `1password-cli` package.

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.

Suggested change
## Options
This Feature has no options. It installs the latest `1password-cli` package.

No need to say nothing's there.

@@ -0,0 +1,30 @@
# 1password-cli

Install the [1Password CLI](https://developer.1password.com/docs/cli/) (`op`) from 1Password's signed apt repository.

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.

Suggested change
Install the [1Password CLI](https://developer.1password.com/docs/cli/) (`op`) from 1Password's signed apt repository.
Install the [1Password CLI](https://developer.1password.com/docs/cli/) (`op`) from 1Password's signed APT repository.

Extremely pedantic nitpick. 😬

exit 1
fi

export DEBIAN_FRONTEND=noninteractive

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.

Suggested change
export DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND="noninteractive"

Comment on lines +57 to +58

op --version

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.

Suggested change
op --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants