From c35558511284c1cecdbe85e4e4b582d0c724906c Mon Sep 17 00:00:00 2001 From: Chris Gillespie <6572184+gillespiecd@users.noreply.github.com> Date: Sat, 12 Sep 2020 21:25:38 -0700 Subject: [PATCH] Set active shell column to boolean (#2540) --- crates/nu-cli/src/commands/shells.rs | 4 ++-- crates/nu-protocol/src/value/primitive.rs | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/commands/shells.rs b/crates/nu-cli/src/commands/shells.rs index 6a74874572..9468465b32 100644 --- a/crates/nu-cli/src/commands/shells.rs +++ b/crates/nu-cli/src/commands/shells.rs @@ -37,9 +37,9 @@ fn shells(args: CommandArgs, _registry: &CommandRegistry) -> Result for Primitive { + /// Helper to convert from boolean to a primitive + fn from(b: bool) -> Primitive { + Primitive::Boolean(b) + } +} + impl From<&str> for Primitive { /// Helper to convert from string slices to a primitive fn from(s: &str) -> Primitive {