mirror of
https://github.com/nushell/nushell.git
synced 2025-05-08 00:42:57 +00:00
23 lines
575 B
Rust
23 lines
575 B
Rust
mod into_sqlite;
|
|
mod query_db;
|
|
mod schema;
|
|
|
|
use into_sqlite::IntoSqliteDb;
|
|
use nu_protocol::engine::StateWorkingSet;
|
|
use query_db::QueryDb;
|
|
use schema::SchemaDb;
|
|
|
|
pub fn add_commands_decls(working_set: &mut StateWorkingSet) {
|
|
macro_rules! bind_command {
|
|
( $command:expr ) => {
|
|
working_set.add_decl(Box::new($command));
|
|
};
|
|
( $( $command:expr ),* ) => {
|
|
$( working_set.add_decl(Box::new($command)); )*
|
|
};
|
|
}
|
|
|
|
// Series commands
|
|
bind_command!(IntoSqliteDb, QueryDb, SchemaDb);
|
|
}
|