mirror of
https://github.com/nushell/nushell
synced 2025-01-16 07:04:09 +00:00
fbc6f01cfb
`left =~ right` return true if left contains right, using Rust's `String::contains`. `!~` is the negated version. A new `apply_operator` function is added which decouples evaluation from `Value::compare`. This returns a `Value` and opens the door to implementing `+` for example, though it wouldn't be useful immediately. The `operator!` macro had to be changed slightly as it would choke on `~` in arguments. |
||
---|---|---|
.. | ||
commands | ||
data | ||
env | ||
evaluate | ||
format | ||
parser | ||
plugins | ||
shell | ||
cli.rs | ||
commands.rs | ||
context.rs | ||
data.rs | ||
env.rs | ||
errors.rs | ||
format.rs | ||
git.rs | ||
lib.rs | ||
main.rs | ||
parser.rs | ||
plugin.rs | ||
prelude.rs | ||
shell.rs | ||
stream.rs | ||
traits.rs | ||
utils.rs |