forked from extern/nushell
Port hash
, hash md5
and hash sha256
commands (#464)
`hash` by itself is only printing the help message. The other two are simply using the same generic implementation.
This commit is contained in:
@ -9,10 +9,7 @@ pub fn create_default_context() -> EngineState {
|
||||
let mut working_set = StateWorkingSet::new(&engine_state);
|
||||
|
||||
macro_rules! bind_command {
|
||||
( $command:expr ) => {
|
||||
working_set.add_decl(Box::new($command));
|
||||
};
|
||||
( $( $command:expr ),* ) => {
|
||||
( $( $command:expr ),* $(,)? ) => {
|
||||
$( working_set.add_decl(Box::new($command)); )*
|
||||
};
|
||||
}
|
||||
@ -175,7 +172,11 @@ pub fn create_default_context() -> EngineState {
|
||||
Where,
|
||||
WithEnv,
|
||||
Wrap,
|
||||
Zip
|
||||
Zip,
|
||||
// Hash
|
||||
Hash,
|
||||
HashMd5::default(),
|
||||
HashSha256::default(),
|
||||
);
|
||||
|
||||
#[cfg(feature = "plugin")]
|
||||
|
Reference in New Issue
Block a user