Conversation
TMRh20
approved these changes
May 24, 2025
Member
TMRh20
left a comment
There was a problem hiding this comment.
I don't fully understand this but approving anyway. :p
Member
Author
|
I admit, the syntax of the nurfile is not easy to comprehend. But basically, you install Instead of doing this to build the lib and examples (from scratch) You can just use I added the optional Run clang-format on any changed C++ files: Run clang-format on every C++ file (regardless of |
when no changed files re detected.
print elapsed time for most external commands. `git status` can't be timed because we are using it's output.
Member
Author
|
I just found out nushell has early support for running parallel jobs. Using this feature I'm able to clang-format 100 files in about 1 sec (was over 2 sec without parallelism before). 💯 |
2bndy5
added a commit
to nRF24/RF24Network
that referenced
this pull request
May 25, 2025
2bndy5
added a commit
to nRF24/RF24Mesh
that referenced
this pull request
May 25, 2025
2bndy5
added a commit
to nRF24/RF24Gateway
that referenced
this pull request
May 25, 2025
This was referenced May 25, 2025
2bndy5
added a commit
to nRF24/RF24Ethernet
that referenced
this pull request
May 25, 2025
Same as nRF24/RF24#1038 except this repo only has the following tasks: - `nur docs` - `nur fmt` All others tasks in nRF24/RF24#1038 are only applicable to Linux or the Pico SDK.
2bndy5
added a commit
to nRF24/RF24Network
that referenced
this pull request
May 26, 2025
2bndy5
added a commit
to nRF24/RF24Mesh
that referenced
this pull request
May 26, 2025
2bndy5
added a commit
to nRF24/RF24Gateway
that referenced
this pull request
May 26, 2025
2bndy5
added a commit
to nRF24/RF24Ethernet
that referenced
this pull request
May 26, 2025
Same as nRF24/RF24#1038 except this repo only has the following tasks: - `nur docs` - `nur fmt` All others tasks in nRF24/RF24#1038 are only applicable to Linux or the Pico SDK. * ran `nur fmt -a` * disable clang-format on 1 line avoids adding the wrong indentation to a line.
2bndy5
added a commit
to nRF24/RF24Mesh
that referenced
this pull request
May 26, 2025
2bndy5
added a commit
to nRF24/RF24Network
that referenced
this pull request
May 26, 2025
2bndy5
added a commit
to nRF24/RF24Gateway
that referenced
this pull request
May 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is completely optional. It allows simplifying (local) dev workflow by using nushell (isolated) as a task runner via nur.
Requirements
nur needs to be installed locally.
Note
nushell is compiled as the backend implementation of nur.
Therefore, nushell does not need to be installed.
Windows
It is easier to just install
nurfrom the github release assets.Linux
Unfortunately,
nurneeds to be built from it's rust sources.rustup set profile minimal, but the std lib docs will still exist on disk until upgrading to the next rust release.nurfrom source usingcargo install nur --locked. The--lockedoption is important (uses thenurproject's cargo.locked manifest).Using
nurOnce nur is installed you can list the tasks defined in the file named "nurfile".
nur docs--open(or-o) option (switch) to open the built docs in your default browser.nur examplesexamples_linux/builddirectory.nur fmt--all(or-a) option (switch) to run clang-format on all C++ sources.nur libnur picoexamples_pico/builddirectory.nur pyTip
All tasks except
nur fmtaccept a--dirty(or-d) flag to reuse an existing build env. If no build env exists, then one will be configured.The tasks that use CMake (
nur lib,nur examples, andnur pico) also forward any additional arguments passed (except-d, --dirty) in tocmake. This allows further configuring the build as needed.Reminder
All tasks have their own
--help(-h) option.nur fmt -h