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:
Darren Schroeder
2020-06-19 15:08:59 -05:00
committed by GitHub
parent bc9cc75c8a
commit 6bfd8532e4
6 changed files with 184 additions and 53 deletions

View File

@ -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;

View File

@ -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)
}

View File

@ -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;