mirror of
https://github.com/nushell/nushell.git
synced 2025-05-20 18:00:49 +02:00
Rename job clear-mail to job flush
This commit is contained in:
parent
d774b1ae96
commit
481da34342
@ -454,7 +454,7 @@ pub fn add_shell_command_context(mut engine_state: EngineState) -> EngineState {
|
||||
JobId,
|
||||
JobSend,
|
||||
JobRecv,
|
||||
JobClearMail,
|
||||
JobFlush,
|
||||
Job,
|
||||
};
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
use nu_engine::command_prelude::*;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct JobClearMail;
|
||||
pub struct JobFlush;
|
||||
|
||||
impl Command for JobClearMail {
|
||||
impl Command for JobFlush {
|
||||
fn name(&self) -> &str {
|
||||
"job clear-mail"
|
||||
"job flush"
|
||||
}
|
||||
|
||||
fn description(&self) -> &str {
|
||||
@ -20,7 +20,7 @@ If a message is received while this command is executing, it may also be discard
|
||||
}
|
||||
|
||||
fn signature(&self) -> nu_protocol::Signature {
|
||||
Signature::build("job clear-mail")
|
||||
Signature::build("job flush")
|
||||
.category(Category::Experimental)
|
||||
.input_output_types(vec![(Type::Nothing, Type::Nothing)])
|
||||
.allow_variants_without_examples(true)
|
||||
@ -50,7 +50,7 @@ If a message is received while this command is executing, it may also be discard
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![Example {
|
||||
example: "job clear-mail",
|
||||
example: "job flush",
|
||||
description: "Clear the mailbox of the current job.",
|
||||
result: None,
|
||||
}]
|
@ -1,6 +1,6 @@
|
||||
mod is_admin;
|
||||
mod job;
|
||||
mod job_clear_mail;
|
||||
mod job_flush;
|
||||
mod job_id;
|
||||
mod job_kill;
|
||||
mod job_list;
|
||||
@ -18,7 +18,7 @@ pub use job_kill::JobKill;
|
||||
pub use job_list::JobList;
|
||||
pub use job_spawn::JobSpawn;
|
||||
|
||||
pub use job_clear_mail::JobClearMail;
|
||||
pub use job_flush::JobFlush;
|
||||
pub use job_recv::JobRecv;
|
||||
pub use job_send::JobSend;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user