forked from extern/nushell
Save alias (#1852)
* figuring out error with lines * make progress in printing of block * support for external commands; fix some tiny bugs in formatting * basic printing of block; going to experiment with bubbling raw input to the command itself to avoid potential edge cases * remove fmt::Display impls for hir structs; bubbled raw_input to command args * compiling checkpoint :) * process raw input alias to remove save flag; do duplicates stored * fix warnings; run clippy * removed tmux log file * fix bug in looking for same alias; changed unwraps to safe unwraps
This commit is contained in:
committed by
GitHub
parent
3239e5055c
commit
8dc5c34932
@ -57,6 +57,7 @@ pub struct CommandArgs {
|
||||
pub shell_manager: ShellManager,
|
||||
pub call_info: UnevaluatedCallInfo,
|
||||
pub input: InputStream,
|
||||
pub raw_input: String,
|
||||
}
|
||||
|
||||
#[derive(Getters, Clone)]
|
||||
@ -76,6 +77,7 @@ impl RawCommandArgs {
|
||||
shell_manager: self.shell_manager,
|
||||
call_info: self.call_info,
|
||||
input: input.into(),
|
||||
raw_input: String::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -151,6 +153,7 @@ pub struct RunnableContext {
|
||||
pub ctrl_c: Arc<AtomicBool>,
|
||||
pub registry: CommandRegistry,
|
||||
pub name: Tag,
|
||||
pub raw_input: String,
|
||||
}
|
||||
|
||||
impl RunnableContext {
|
||||
@ -384,6 +387,7 @@ impl WholeStreamCommand for FnFilterCommand {
|
||||
shell_manager,
|
||||
call_info,
|
||||
mut input,
|
||||
..
|
||||
} = args;
|
||||
|
||||
let host: Arc<parking_lot::Mutex<dyn Host>> = host.clone();
|
||||
|
Reference in New Issue
Block a user