forked from extern/nushell
Bat config (#2010)
* WIP - changes to support bat config * added bat configuration * removed debug info * clippy fix * changed [bat] to [textview] Co-authored-by: Darren Schroeder <fdncred@hotmail.com>
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
pub(crate) mod base;
|
||||
pub(crate) mod command;
|
||||
pub(crate) mod config;
|
||||
pub mod config;
|
||||
pub(crate) mod dict;
|
||||
pub(crate) mod files;
|
||||
pub mod primitive;
|
||||
|
@ -103,7 +103,7 @@ pub fn read(
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn config(tag: impl Into<Tag>) -> Result<IndexMap<String, Value>, ShellError> {
|
||||
pub fn config(tag: impl Into<Tag>) -> Result<IndexMap<String, Value>, ShellError> {
|
||||
read(tag, &None)
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ extern crate quickcheck_macros;
|
||||
mod cli;
|
||||
mod commands;
|
||||
mod context;
|
||||
mod data;
|
||||
pub mod data;
|
||||
mod deserializer;
|
||||
mod env;
|
||||
mod evaluate;
|
||||
@ -39,6 +39,7 @@ pub use crate::commands::command::{
|
||||
};
|
||||
pub use crate::commands::help::get_help;
|
||||
pub use crate::context::CommandRegistry;
|
||||
pub use crate::data::config;
|
||||
pub use crate::data::dict::TaggedListBuilder;
|
||||
pub use crate::data::primitive;
|
||||
pub use crate::data::value;
|
||||
|
Reference in New Issue
Block a user