mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 21:28:55 +02:00
Remove prelude, reorg imports
This commit is contained in:
parent
2ffde2acab
commit
11e96b6c39
@ -21,8 +21,6 @@ pub fn load_standard_library(
|
|||||||
("core", include_str!("../std/core.nu")),
|
("core", include_str!("../std/core.nu")),
|
||||||
// std module - Loads all commands and submodules
|
// std module - Loads all commands and submodules
|
||||||
("mod.nu", include_str!("../std/mod.nu")),
|
("mod.nu", include_str!("../std/mod.nu")),
|
||||||
// Faster - Loads a subset of commands and submodules
|
|
||||||
("prelude", include_str!("../std/prelude.nu")),
|
|
||||||
// std submodules
|
// std submodules
|
||||||
("assert", include_str!("../std/assert.nu")),
|
("assert", include_str!("../std/assert.nu")),
|
||||||
("bench", include_str!("../std/bench.nu")),
|
("bench", include_str!("../std/bench.nu")),
|
||||||
|
@ -1,8 +1,21 @@
|
|||||||
# std.nu, `used` to load all standard library components
|
# std.nu, `used` to load all standard library components
|
||||||
|
|
||||||
export use lib *
|
export module help
|
||||||
|
export module input
|
||||||
|
export module iter
|
||||||
|
export module log
|
||||||
export module assert
|
export module assert
|
||||||
export module bench
|
|
||||||
|
# Allow use of non-prefixed commands
|
||||||
|
# from these submodules when `use std *`
|
||||||
|
export use lib *
|
||||||
|
export use bench *
|
||||||
|
export use dt *
|
||||||
|
export use formats *
|
||||||
|
export use xml *
|
||||||
|
export use math *
|
||||||
|
|
||||||
|
# Load main dirs command and all subcommands
|
||||||
export use dirs main
|
export use dirs main
|
||||||
export module dirs {
|
export module dirs {
|
||||||
export use dirs [
|
export use dirs [
|
||||||
@ -13,14 +26,9 @@ export module dirs {
|
|||||||
goto
|
goto
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
export module dt
|
|
||||||
export use dt *
|
# Backward compatibility
|
||||||
export module formats
|
# Allow, for example, `formats to jsonl`
|
||||||
export use formats *
|
|
||||||
export module help
|
|
||||||
export module input
|
|
||||||
export module iter
|
|
||||||
export module log
|
|
||||||
export use math *
|
|
||||||
export module xml
|
export module xml
|
||||||
export use xml *
|
export module formats
|
||||||
|
export module dt
|
@ -1,9 +0,0 @@
|
|||||||
# std.nu, `used` to load base standard library components
|
|
||||||
|
|
||||||
export module input
|
|
||||||
export module iter
|
|
||||||
|
|
||||||
# Make certain commands available in the top-level namespace
|
|
||||||
export use lib *
|
|
||||||
export use formats *
|
|
||||||
export use dt *
|
|
Loading…
Reference in New Issue
Block a user