From a93501f294756709d1816a40bcaa699f20ec444e Mon Sep 17 00:00:00 2001 From: Jacob Strieb Date: Fri, 22 Dec 2023 11:16:20 -0500 Subject: [PATCH] Fix typos --- README.md | 7 +++++-- just_sh/convert.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 234a637..cdfb6ab 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ I like tools that effectively achieve one well-defined goal, without growing indefinitely. My hope is for `just.sh` to be such a tool. In other words, `just.sh` is "complete" software. I will fix bugs and make -changes to matinain compatibility with `just`, but there are no new features +changes to maintain compatibility with `just`, but there are no new features planned. As such, even if there are no recent commits, the project is not dead! Few @@ -81,8 +81,11 @@ files (plus one more for tests), and every line of code is covered by tests. - `import`, `[confirm]`, and possibly some other recent features from Just versions greater than 1.14.0 may not yet be supported - The `./just.sh --dump` command does not reformat Justfiles +- The tests check colorless output of `just.sh` against `just`. They do not + confirm that the colors and ANSI escape sequences are the same between the + two # Acknowledgments - Thanks to [Logan Snow](https://github.com/lsnow99) for testing early versions, - consulting on design decisions, and being a great guy overall \ No newline at end of file + consulting on design decisions, and being a great guy overall diff --git a/just_sh/convert.py b/just_sh/convert.py index 0c98a67..2063f50 100644 --- a/just_sh/convert.py +++ b/just_sh/convert.py @@ -1434,11 +1434,11 @@ def match_variable_case(name: str) -> str: def evaluate_fn() -> str: if compiler_state.variables: max_len = max(len(k) for k in compiler_state.variables) - echo_variables = " \n".join( + echo_variables = "\n ".join( f"echo '{spaced_var_name(name, max_len)}'" for name in sorted(compiler_state.variables.keys()) ) - variable_cases = " \n".join( + variable_cases = "\n ".join( match_variable_case(name) for name in compiler_state.variables ) else: