forked from extern/nushell
2cffff0c1b
* Allow private imports inside modules Can call `use ...` inside modules now. * Add more tests * Add a leak test * Refactor exportables; Prepare for 'export use' * Fix description * Implement 'export use' command This allows re-exporting module's commands and aliases from another module. * Add more tests; Fix import pattern list strings The import pattern strings didn't trim the surrounding quotes. * Add ignored test
8 lines
189 B
Rust
8 lines
189 B
Rust
use crate::{AliasId, BlockId, DeclId};
|
|
|
|
pub enum Exportable {
|
|
Decl { name: Vec<u8>, id: DeclId },
|
|
Alias { name: Vec<u8>, id: AliasId },
|
|
EnvVar { name: Vec<u8>, id: BlockId },
|
|
}
|