diff --git a/docs/src/examples/basics.md b/docs/src/examples/basics.md index 7b3869b..ca5e1fe 100644 --- a/docs/src/examples/basics.md +++ b/docs/src/examples/basics.md @@ -62,11 +62,10 @@ transform "Identity 0" "Password" keyring service="konversation" user="konversat add:hide "Identity 0" "Password" ``` -To store the password for Identity 0 in your keyring of choice you can use the -`secret-tool` program from `libsecret` (`libsecret-tools` on Debian/Ubuntu): +To store the password for Identity 0 in your keyring of choice you can use: ```console -$ secret-tool store --label="Konversation password" service konversation username konversation_id0 +$ chezmoi_modify_manager --keyring-set konversation konversation_id0 [Enter your password at the prompt] ``` @@ -145,8 +144,8 @@ in git. This works similarly to [konversation](#konversationrc). For example, you might use the following if you have a Prusa Mk3.9: ```bash -transform "" "printhost_password" keyring service="ini_processor" user="prusa_mk39_password" separator=" = " -transform "" "printhost_apikey" keyring service="ini_processor" user="prusa_mk39_apikey" separator=" = " +transform "" "printhost_password" keyring service="chezmoi_modify_manager" user="prusa_mk39_password" separator=" = " +transform "" "printhost_apikey" keyring service="chezmoi_modify_manager" user="prusa_mk39_apikey" separator=" = " add:hide "" "printhost_password" add:hide "" "printhost_apikey" ``` @@ -154,9 +153,9 @@ add:hide "" "printhost_apikey" To add your password and API key you would then use: ```console -$ secret-tool store --label="Prusa Mk3.9 password" service ini_processor username prusa_mk39_password +chezmoi_modify_manager --keyring-set chezmoi_modify_manager prusa_mk39_password Password: [Enter password] -$ secret-tool store --label="Prusa Mk3.9 API key" service ini_processor username prusa_mk39_apikey +chezmoi_modify_manager --keyring-set chezmoi_modify_manager prusa_mk39_apikey Password: [Enter the API key] ``` diff --git a/docs/src/transforms.md b/docs/src/transforms.md index 94b76c8..5f1daee 100644 --- a/docs/src/transforms.md +++ b/docs/src/transforms.md @@ -49,8 +49,8 @@ Arguments: * `service="service-name"`: Service name to find entry in the keyring. * `user="user-name"`: Username to find entry in the keyring. -On Linux you can add an entry to the keyring using: +You can add an entry to the secret store for your platform with: ```bash -secret-tool store --label="Descriptive name" service "service-name" username "user-name" +chezmoi_modify_manager --keyring-set service-name user-name ``` diff --git a/src/transforms.rs b/src/transforms.rs index ef2f7c0..6198b7f 100644 --- a/src/transforms.rs +++ b/src/transforms.rs @@ -39,7 +39,7 @@ pub(crate) enum Transform { /// * user="user-name" (username to find entry in the keyring) /// /// On Linux you can add an entry to the keyring using: - /// secret-tool store --label="Descriptive name" service "service-name" username "user-name" + /// chezmoi_modify_manager --keyring-set "service-name" "user-name" #[strum(serialize = "keyring")] Keyring, }