1Password / shell-plugins

Seamless authentication for every tool in your terminal.
https://developer.1password.com/docs/cli/shell-plugins/
MIT License
519 stars 170 forks source link

Add file importer for cachix plugin #373

Closed dethancosta closed 1 year ago

dethancosta commented 1 year ago

Overview

Adds a file importer for the Cachix plugin. The file is stored at ~/.config/cachix/cachix.dhall and is generated from a terminal command. To avoid bringing in a third-party dependency, the file contents are processed as a string, rather than using a dhall parser.

Type of change

- [ ] Created a new plugin - [x] Improved an existing plugin - [ ] Fixed a bug in an existing plugin - [ ] Improved contributor utilities or experience ## Related Issue(s) * Resolves: #111 ## How To Test When running `op plugin init cachix`, you should now see the option to import credentials using the specified file. ## Changelog The Cachix plugin now checks for the `~/.config/cachix/cachix.dhall` file and attempts to import an auth token using the specified file.