From 1ea3cb196ab27ddecbc005cc7b0285c972b7eae9 Mon Sep 17 00:00:00 2001 From: Natsuki Ikeguchi Date: Tue, 26 Sep 2023 23:02:26 +0900 Subject: [PATCH] feat!: Remove public access of Host::oauth_token BREAKING CHANGE: Host::oauth_token is no longer available. Use Hosts::retrieve_token instead. --- src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d69d65b..8015f2b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ //! ## Getting started //! ```toml //! [dependencies] -//! gh-config = "0.1" +//! gh-config = "0.2" //! ``` //! //! ## Usage @@ -135,12 +135,8 @@ impl Config { #[derive(Debug, Clone, Deserialize, Serialize)] pub struct Host { pub user: Option, - #[deprecated( - since = "0.2.2", - note = "gh CLI has been migrated to secure storage, and the tokens there are not able to be retrieved using this field. Use [`Hosts::retrieve_token`] instead." - )] #[serde(default)] - pub oauth_token: String, + oauth_token: String, pub git_protocol: Option, }