You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A 32-byte long hex string of the Gist ID with the validation string for the user GH account
30
31
/// E.g. `fb8fc0f87ee78231f064131022c8154a`
31
32
/// It is validated on change and then cached in config.json
32
33
pubgh_validation_id:Option<String>,
34
+
/// GitHub login of the user. It is set after validating the a/c ownership and then cached in config.json
35
+
pubgh_login:Option<String>,
33
36
/// Core config from stackmuncher_lib
34
37
publib_config:Config,
35
38
/// Extracted from the key file stored next to the config file
@@ -44,8 +47,11 @@ pub(crate) struct AppConfig {
44
47
/// A container for storing some config info locally as a file.
45
48
#[derive(Serialize,Deserialize,PartialEq)]
46
49
structAppConfigCache{
50
+
// An empty string means NO CONTACT
47
51
pubprimary_email:Option<String>,
48
52
pubgh_validation_id:Option<String>,
53
+
// It is a derivitive value. Used for displaying a profile URL only.
54
+
pubgh_login:Option<String>,
49
55
pubgit_identities:Vec<String>,
50
56
}
51
57
@@ -171,7 +177,7 @@ impl AppConfig {
171
177
if prim_email_arg.is_empty(){
172
178
// reset the value to NULL if `--primary_email ""`
173
179
debug!("Resetting primary_email to an empty string");
174
-
println!("Your primary email address for notifications from the Directory was removed. Your profile will no longer be updated. You can still generate and view stack reports locally.");
180
+
println!("Your primary email address for notifications from the Directory was removed.");
175
181
println!();
176
182
Some(String::new())
177
183
}else{
@@ -199,7 +205,7 @@ impl AppConfig {
199
205
println!("Missing preferred contact email. Your profile will not be updated. You can still generate and view your stack reports locally.");
200
206
println!();
201
207
println!(
202
-
" Run `stackmuncher{} --primary_email [email protected]` to start updating your Directory profile.",
208
+
" Run `stackmuncher{} --primary_email [email protected]` to set your preferred contact email for notifications about profile views and employer interest.",
203
209
EXE_SUFFIX
204
210
);
205
211
println!();
@@ -237,16 +243,16 @@ impl AppConfig {
237
243
// GitHub login validation - use the validated ID or None if --gist param was provided
238
244
// It means that the user requested a change of sorts.
239
245
// Otherwise use what is in the cache without any validation.
240
-
let(gh_validation_id, gh_validation_gist) = if app_args.gh_validation_id.is_some(){
246
+
let(gh_validation_id,gh_login,gh_validation_gist) = if app_args.gh_validation_id.is_some(){
241
247
// --gist was present - so a change was requested by the user
0 commit comments