Skip to content

Commit 82610b6

Browse files
committed
Better messages (exe location, run again to submit)
1 parent f6cb3bb commit 82610b6

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

shell/build_and_install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cargo build --release && sudo cp target/release/stackmuncher /usr/bin/ && sudo chmod 755 /usr/bin/stackmuncher

stackmuncher/src/cmd_config.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ pub(crate) async fn view_config(config: AppConfig) {
6969
.expect("Cannot convert config.config_file_path to absolute path. It's a bug.")
7070
.to_string_lossy()
7171
.to_string();
72+
let exe_file = match std::env::current_exe() {
73+
Ok(v) => v.to_string_lossy().to_string(),
74+
Err(_) => "unknown".to_string(),
75+
};
7276

7377
// gh_validation_gist may already be in the config if --gist option was used and it was validated
7478
// otherwise we need to re-validate it and get the details from github
@@ -88,11 +92,12 @@ pub(crate) async fn view_config(config: AppConfig) {
8892
println!(" Commit emails: {}", config.lib_config.git_identities.join(", "));
8993
println!();
9094
println!(" Anonymous profile: https://stackmuncher.com/?dev={}", pub_key);
91-
println!(" Public profile: {}", public_profile);
95+
println!(" Public profile: {}", public_profile);
9296
println!(" GitHub validation: {}", github_validation);
9397
println!();
94-
println!(" Local stack reports: {}", reports);
98+
println!(" Stack reports: {}", reports);
9599
println!(" Config folder: {}", config_file);
100+
println!(" Executable: {}", exe_file);
96101
println!();
97102
}
98103

stackmuncher/src/help.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ pub(crate) fn emit_dryrun_msg(report_file_path: &str) {
8181
);
8282
eprintln!();
8383
eprintln!(" The app will start submitting stack reports for this project from the next run unless `--dryrun` flag is specified.");
84+
eprintln!(" Run it once more if you want to submit the report now.");
8485
eprintln!();
8586
}
8687

stackmuncher/src/submission.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ pub(crate) async fn submit_report(report: Report, config: &AppConfig) {
7373

7474
// public profile is preferred, but not be enabled
7575
if let Some(gh_login) = &config.gh_login {
76-
println!(" Public profile: https://stackmuncher.com/{}", gh_login);
76+
println!(" Project update added to: https://stackmuncher.com/{}", gh_login);
7777
} else {
78-
println!(" Directory profile: https://stackmuncher.com/?dev={}", report_sig.public_key);
78+
println!(" Project update added to: https://stackmuncher.com/?dev={}", report_sig.public_key);
7979
}
8080

8181
return;

0 commit comments

Comments
 (0)