Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli-test: Add placeholder for executable extension
Lorenz Leutgeb committed 2 months ago
commit cbec8663dcc44a376bf5e044ac213c1c4f3a53e4
parent 98faee11527177511a76a1b125e36f58e2dc19a8
2 files changed +11 -1
modified crates/radicle-cli-test/src/lib.rs
@@ -481,6 +481,16 @@ impl TestFormula {
                        let assert = OutputAssert::new(output).with_assert(assert.clone());
                        let expected = Self::map_spaced_brackets(&assertion.expected);

+
                        let expected = {
+
                            #[cfg(windows)]
+
                            const EXE: &str = ".exe";
+

+
                            #[cfg(unix)]
+
                            const EXE: &str = "";
+

+
                            expected.replace("[EXE]", EXE)
+
                        };
+

                        let matches = if test.stderr {
                            assert.stderr_matches(&expected)
                        } else {
modified crates/radicle-cli/examples/rad-help.md
@@ -9,7 +9,7 @@ Do you have feedback?
 - Mail <feedback@radicle.xyz>
   (Messages are automatically posted to the public #feedback channel on Zulip.)

-
Usage: rad <COMMAND>
+
Usage: rad[EXE] <COMMAND>

Commands:
  auth      Manage identities and profiles