mirror of
https://github.com/nushell/nushell.git
synced 2025-05-21 02:10:47 +02:00
Fix typos
This commit is contained in:
parent
f15fe84df6
commit
04df4130a4
@ -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 {
|
fn signature(&self) -> nu_protocol::Signature {
|
||||||
Signature::build("mail flush")
|
Signature::build("mail clear")
|
||||||
.category(Category::Experimental)
|
.category(Category::Experimental)
|
||||||
.input_output_types(vec![(Type::Nothing, Type::Nothing)])
|
.input_output_types(vec![(Type::Nothing, Type::Nothing)])
|
||||||
.allow_variants_without_examples(true)
|
.allow_variants_without_examples(true)
|
||||||
|
@ -14,14 +14,14 @@ impl Command for MailRecv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn description(&self) -> &str {
|
fn description(&self) -> &str {
|
||||||
"Read a message from the mailbox"
|
"Read a message from the mailbox."
|
||||||
}
|
}
|
||||||
|
|
||||||
fn extra_description(&self) -> &str {
|
fn extra_description(&self) -> &str {
|
||||||
r#"When messages are sent to the current process, they get stored in what is called the "mailbox".
|
r#"When messages are sent to the current process, they get stored in what is called the "mailbox".
|
||||||
This commands reads and returns a message from the mailbox, in a first-in-first-out fashion.
|
This commands reads and returns a message from the mailbox, in a first-in-first-out fashion.
|
||||||
j
|
j
|
||||||
Messages may have numeric flags attatched to them. This commands supports filtering out messages that do not satisfy a given tag, by using the `tag` flag.
|
Messages may have numeric flags attached to them. This commands supports filtering out messages that do not satisfy a given tag, by using the `tag` flag.
|
||||||
If no tag is specified, this command will accept any message.
|
If no tag is specified, this command will accept any message.
|
||||||
|
|
||||||
If no message with the specified tag (if any) is available in the mailbox, this command will block the current thread until one arrives.
|
If no message with the specified tag (if any) is available in the mailbox, this command will block the current thread until one arrives.
|
||||||
@ -40,7 +40,7 @@ in no particular order, regardless of the specified timeout parameter.
|
|||||||
.named(
|
.named(
|
||||||
"timeout",
|
"timeout",
|
||||||
SyntaxShape::Duration,
|
SyntaxShape::Duration,
|
||||||
"The maximum duration to wait for",
|
"The maximum time duration to wait for.",
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
.input_output_types(vec![(Type::Nothing, Type::Any)])
|
.input_output_types(vec![(Type::Nothing, Type::Any)])
|
||||||
|
@ -10,7 +10,7 @@ impl Command for MailSend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn description(&self) -> &str {
|
fn description(&self) -> &str {
|
||||||
"Send a message to a job"
|
"Send a message to the mailbox of a job."
|
||||||
}
|
}
|
||||||
|
|
||||||
fn extra_description(&self) -> &str {
|
fn extra_description(&self) -> &str {
|
||||||
@ -31,7 +31,7 @@ This command never blocks.
|
|||||||
.required(
|
.required(
|
||||||
"id",
|
"id",
|
||||||
SyntaxShape::Int,
|
SyntaxShape::Int,
|
||||||
"The id of the job to send the message to",
|
"The id of the job to send the message to.",
|
||||||
)
|
)
|
||||||
.named("tag", SyntaxShape::Int, "A tag for the message", None)
|
.named("tag", SyntaxShape::Int, "A tag for the message", None)
|
||||||
.input_output_types(vec![(Type::Any, Type::Nothing)])
|
.input_output_types(vec![(Type::Any, Type::Nothing)])
|
||||||
|
@ -229,11 +229,11 @@ impl FrozenJob {
|
|||||||
pub struct CurrentJob {
|
pub struct CurrentJob {
|
||||||
pub id: JobId,
|
pub id: JobId,
|
||||||
|
|
||||||
// The backgorund thread job associated with this thread.
|
// The background thread job associated with this thread.
|
||||||
// If None, it indicates this thread is currently the main job
|
// If None, it indicates this thread is currently the main job
|
||||||
pub background_thread_job: Option<ThreadJob>,
|
pub background_thread_job: Option<ThreadJob>,
|
||||||
|
|
||||||
// note: altough the mailbox is Mutex'd, it is only ever accessed
|
// note: although the mailbox is Mutex'd, it is only ever accessed
|
||||||
// by the current job's threads
|
// by the current job's threads
|
||||||
pub mailbox: Arc<Mutex<Mailbox>>,
|
pub mailbox: Arc<Mutex<Mailbox>>,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user