FEATURE: fix the namespace of the standard library (not testing)#9193
FEATURE: fix the namespace of the standard library (not testing)#9193kubouch merged 16 commits intonushell:mainfrom
Conversation
This commit changed the aliases to `dirs ...` and thus requires to load (`foo`, `dirs foo`) in the prelude.
This commit
- refactors the `assert` commands into an exported module
- avoids built-in shadowing by renaming
- `assert length` into `assert len`
- `assert str contains` into `assert str includes`
|
i would like to make EDIT: locally in my tests
|
|
there is definitely an issue with |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #9193 +/- ##
==========================================
- Coverage 68.92% 68.53% -0.40%
==========================================
Files 635 636 +1
Lines 102041 102281 +240
==========================================
- Hits 70332 70097 -235
- Misses 31709 32184 +475
|
yes i can 💪
✔️ on latest now let's say we want to add a export def main [] { help iter }at the end of
|
related to the changes in nushell#9193
related to the changes in - #9193 # Description when we change the namespace of a module, the internal calls to the `export`ed commands needs to be updated as well 👀 😆 without this, we have the following pretty error: ``` > std help ansi Error: × std::help::item_not_found ╭─[entry #1:1:1] 1 │ std help ansi · ──┬─ · ╰── item not found ╰──── ```
should close the "structuring" task of
Description
up until now, we could not do the following
or
this PR fixes the namespace by allowing these kind of imports!
User-Facing Changes
the users are now more free to import
stditems✔️ valid imports
use std log(exposes alllogcommands)use std log custom(exposeslog customascustom)use std "log info"(as before) (exposeslog infoaslog info)Tests + Formatting
toolkit fmttoolkit clippytoolkit testtoolkit test stdlibAfter Submitting