mirror of
https://github.com/nushell/nushell.git
synced 2025-04-10 14:08:40 +02:00
move run_plugin command location
This commit is contained in:
parent
ef94c71866
commit
468b9affde
@ -9,6 +9,7 @@ mod if_;
|
|||||||
mod let_;
|
mod let_;
|
||||||
mod module;
|
mod module;
|
||||||
mod register;
|
mod register;
|
||||||
|
mod run_plugin;
|
||||||
mod source;
|
mod source;
|
||||||
mod use_;
|
mod use_;
|
||||||
|
|
||||||
@ -23,5 +24,6 @@ pub use if_::If;
|
|||||||
pub use let_::Let;
|
pub use let_::Let;
|
||||||
pub use module::Module;
|
pub use module::Module;
|
||||||
pub use register::Register;
|
pub use register::Register;
|
||||||
|
pub use run_plugin::RunPlugin;
|
||||||
pub use source::Source;
|
pub use source::Source;
|
||||||
pub use use_::Use;
|
pub use use_::Use;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use nu_protocol::ast::Call;
|
use nu_protocol::ast::Call;
|
||||||
use nu_protocol::engine::{Command, EngineState, Stack};
|
use nu_protocol::engine::{Command, EngineState, Stack};
|
||||||
use nu_protocol::{PipelineData, ShellError, Signature};
|
use nu_protocol::{PipelineData, Signature};
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct RunPlugin;
|
pub struct RunPlugin;
|
||||||
@ -25,6 +25,6 @@ impl Command for RunPlugin {
|
|||||||
_call: &Call,
|
_call: &Call,
|
||||||
_input: PipelineData,
|
_input: PipelineData,
|
||||||
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
|
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
|
||||||
Err(ShellError::InternalError("plugin".into()))
|
Ok(PipelineData::new())
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,9 +1,7 @@
|
|||||||
mod git;
|
mod git;
|
||||||
mod git_checkout;
|
mod git_checkout;
|
||||||
mod list_git_branches;
|
mod list_git_branches;
|
||||||
mod run_plugin;
|
|
||||||
|
|
||||||
pub use git::Git;
|
pub use git::Git;
|
||||||
pub use git_checkout::GitCheckout;
|
pub use git_checkout::GitCheckout;
|
||||||
pub use list_git_branches::ListGitBranches;
|
pub use list_git_branches::ListGitBranches;
|
||||||
pub use run_plugin::RunPlugin;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user