2 files changed
+14
-7
crates/cli/src/account/forgot/mod.rs
+4
-4
@@ -1,4 +1,4 @@
1
-use crate::cli::CommandResult;
1
+use crate::{cli::CommandResult, ui::{fail_message, fail_symbol}};
2
use anyhow::Result;
3
use console::style;
4
use dialoguer::{theme::ColorfulTheme, Input, Password};
@@ -20,7 +20,7 @@ pub async fn process_forgot(env: Environment) -> Result<CommandResult> {
20
.unwrap();
21
let mut spinner = Spinner::new(
22
spinners::Spinners::SimpleDotsScrolling,
23
- style("Checking email...").green().bold().to_string(),
23
+ style("Checking email").green().bold().to_string(),
24
);
25
26
let params = Args {
@@ -43,8 +43,8 @@ pub async fn process_forgot(env: Environment) -> Result<CommandResult> {
43
}
44
_ => Ok(CommandResult {
45
spinner,
46
- symbol: "😩".to_owned(),
47
- msg: "Something wrong when trying to reset email.".to_owned(),
46
+ symbol: fail_symbol(),
47
+ msg: fail_message("Something wrong when trying to reset email."),
48
}),
49
}
50
}
docs/debugging.md
+10
-3
@@ -3,7 +3,7 @@
3
To debug the app on VSCode, use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) and [cargo debugger](https://github.com/jkelleyrtp/cargo-debugger).
4
5
```bash
6
-$ cargo debugger --manifest-path smbcloud-cli/Cargo.toml -- account signup
6
+$ cargo debugger --package smbcloud-cli -- account signup
7
```
8
9
@@ -16,5 +16,12 @@ $ cargo run -- -e dev account login
16
17
Example debug the dev environment:
18
```bash
19
-$ cargo debugger --manifest-path smbcloud-cli/Cargo.toml -- --environment dev account login
20
-```
\ No newline at end of file
19
+$ cargo debugger --package cli -- -e dev account login
20
+```
21
+
22
+## Run from different directory
23
+
24
+To run from a different directory, use the `--manifest-path` flag and `--package` flag. :
25
+```bash
26
+$ cargo debugger --manifest-path .../path/to/smbcloud-cli/Cargo.toml --package smbcloud-cli -- -e dev account login
27
+```