repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/ps.rs
crates/nu-command/src/system/ps.rs
#[cfg(target_os = "macos")] use chrono::{Local, TimeZone}; #[cfg(windows)] use itertools::Itertools; use nu_engine::command_prelude::*; #[cfg(target_os = "linux")] use procfs::WithCurrentSystemInfo; use std::time::Duration; #[derive(Clone)] pub struct Ps; impl Command for Ps { fn name(&self) -> &str { "p...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/temp.rs
crates/nu-command/src/system/sys/temp.rs
use nu_engine::command_prelude::*; use sysinfo::Components; #[derive(Clone)] pub struct SysTemp; impl Command for SysTemp { fn name(&self) -> &str { "sys temp" } fn signature(&self) -> Signature { Signature::build("sys temp") .filter() .category(Category::System) ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/sys_.rs
crates/nu-command/src/system/sys/sys_.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Sys; impl Command for Sys { fn name(&self) -> &str { "sys" } fn signature(&self) -> Signature { Signature::build("sys") .filter() .category(Category::System) .input_output_t...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/disks.rs
crates/nu-command/src/system/sys/disks.rs
use super::trim_cstyle_null; use nu_engine::command_prelude::*; use sysinfo::Disks; #[derive(Clone)] pub struct SysDisks; impl Command for SysDisks { fn name(&self) -> &str { "sys disks" } fn signature(&self) -> Signature { Signature::build("sys disks") .filter() ....
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/users.rs
crates/nu-command/src/system/sys/users.rs
use super::trim_cstyle_null; use nu_engine::command_prelude::*; use sysinfo::Users; #[derive(Clone)] pub struct SysUsers; impl Command for SysUsers { fn name(&self) -> &str { "sys users" } fn signature(&self) -> Signature { Signature::build("sys users") .category(Category::Sys...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/mod.rs
crates/nu-command/src/system/sys/mod.rs
mod cpu; mod disks; mod host; mod mem; mod net; mod sys_; mod temp; mod users; pub use cpu::SysCpu; pub use disks::SysDisks; pub use host::SysHost; pub use mem::SysMem; pub use net::SysNet; pub use sys_::Sys; pub use temp::SysTemp; pub use users::SysUsers; fn trim_cstyle_null(s: impl AsRef<str>) -> String { s.as_...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/mem.rs
crates/nu-command/src/system/sys/mem.rs
use nu_engine::command_prelude::*; use sysinfo::System; #[derive(Clone)] pub struct SysMem; impl Command for SysMem { fn name(&self) -> &str { "sys mem" } fn signature(&self) -> Signature { Signature::build("sys mem") .filter() .category(Category::System) ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/cpu.rs
crates/nu-command/src/system/sys/cpu.rs
use super::trim_cstyle_null; use nu_engine::command_prelude::*; use sysinfo::{CpuRefreshKind, MINIMUM_CPU_UPDATE_INTERVAL, System}; #[derive(Clone)] pub struct SysCpu; impl Command for SysCpu { fn name(&self) -> &str { "sys cpu" } fn signature(&self) -> Signature { Signature::build("sys c...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/host.rs
crates/nu-command/src/system/sys/host.rs
use super::trim_cstyle_null; use chrono::{DateTime, FixedOffset, Local}; use nu_engine::command_prelude::*; use sysinfo::System; #[derive(Clone)] pub struct SysHost; impl Command for SysHost { fn name(&self) -> &str { "sys host" } fn signature(&self) -> Signature { Signature::build("sys h...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/system/sys/net.rs
crates/nu-command/src/system/sys/net.rs
use super::trim_cstyle_null; use nu_engine::command_prelude::*; use sysinfo::Networks; #[derive(Clone)] pub struct SysNet; impl Command for SysNet { fn name(&self) -> &str { "sys net" } fn signature(&self) -> Signature { Signature::build("sys net") .filter() .categ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/misc/source.rs
crates/nu-command/src/misc/source.rs
use nu_engine::{command_prelude::*, get_eval_block_with_early_return}; use nu_path::{canonicalize_with, is_windows_device_path}; use nu_protocol::{BlockId, engine::CommandType, shell_error::io::IoError}; /// Source a file for environment variables. #[derive(Clone)] pub struct Source; impl Command for Source { fn ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/misc/panic.rs
crates/nu-command/src/misc/panic.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct Panic; impl Command for Panic { fn name(&self) -> &str { "panic" } fn description(&self) -> &str { "Causes nushell to panic." } fn search_terms(&self) -> Vec<&str> { vec!["crash", "throw"] } fn signat...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/misc/tutor.rs
crates/nu-command/src/misc/tutor.rs
use itertools::Itertools; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct Tutor; impl Command for Tutor { fn name(&self) -> &str { "tutor" } fn signature(&self) -> Signature { Signature::build("tutor") .input_output_types(vec![(Type::Nothing, Type::String)]) ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/misc/mod.rs
crates/nu-command/src/misc/mod.rs
mod panic; mod source; mod tutor; mod unlet; pub use panic::Panic; pub use source::Source; pub use tutor::Tutor; pub use unlet::DeleteVar;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/misc/unlet.rs
crates/nu-command/src/misc/unlet.rs
use nu_engine::command_prelude::*; use nu_protocol::engine::{ENV_VARIABLE_ID, IN_VARIABLE_ID, NU_VARIABLE_ID}; #[derive(Clone)] pub struct DeleteVar; impl Command for DeleteVar { fn name(&self) -> &str { "unlet" } fn description(&self) -> &str { "Delete variables from nushell memory, maki...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/with_env.rs
crates/nu-command/src/env/with_env.rs
use nu_engine::{command_prelude::*, eval_block}; use nu_protocol::{debugger::WithoutDebug, engine::Closure}; #[derive(Clone)] pub struct WithEnv; impl Command for WithEnv { fn name(&self) -> &str { "with-env" } fn signature(&self) -> Signature { Signature::build("with-env") .i...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/mod.rs
crates/nu-command/src/env/mod.rs
mod config; mod export_env; mod load_env; mod source_env; mod with_env; pub use config::ConfigEnv; pub use config::ConfigFlatten; pub use config::ConfigMeta; pub use config::ConfigNu; pub use config::ConfigReset; pub use config::ConfigUseColors; pub use export_env::ExportEnv; pub use load_env::LoadEnv; pub use source_...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/export_env.rs
crates/nu-command/src/env/export_env.rs
use nu_engine::{command_prelude::*, get_eval_block, redirect_env}; use nu_protocol::engine::CommandType; #[derive(Clone)] pub struct ExportEnv; impl Command for ExportEnv { fn name(&self) -> &str { "export-env" } fn signature(&self) -> Signature { Signature::build("export-env") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/source_env.rs
crates/nu-command/src/env/source_env.rs
use nu_engine::{ command_prelude::*, find_in_dirs_env, get_dirs_var_from_call, get_eval_block_with_early_return, redirect_env, }; use nu_protocol::{ BlockId, engine::CommandType, shell_error::{self, io::IoError}, }; use std::path::PathBuf; /// Source a file for environment variables. #[derive(Clone...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/load_env.rs
crates/nu-command/src/env/load_env.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct LoadEnv; impl Command for LoadEnv { fn name(&self) -> &str { "load-env" } fn description(&self) -> &str { "Loads an environment update from a record." } fn signature(&self) -> nu_protocol::Signature { Signatur...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/config/config_nu.rs
crates/nu-command/src/env/config/config_nu.rs
use nu_engine::command_prelude::*; use nu_utils::ConfigFileKind; #[derive(Clone)] pub struct ConfigNu; impl Command for ConfigNu { fn name(&self) -> &str { "config nu" } fn signature(&self) -> Signature { Signature::build(self.name()) .category(Category::Env) .inpu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/config/config_env.rs
crates/nu-command/src/env/config/config_env.rs
use nu_engine::command_prelude::*; use nu_utils::ConfigFileKind; #[derive(Clone)] pub struct ConfigEnv; impl Command for ConfigEnv { fn name(&self) -> &str { "config env" } fn signature(&self) -> Signature { Signature::build(self.name()) .category(Category::Env) .i...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/config/config_flatten.rs
crates/nu-command/src/env/config/config_flatten.rs
use nu_engine::command_prelude::*; use nu_utils::JsonFlattener; // Ensure this import is present // Ensure this import is present #[derive(Clone)] pub struct ConfigFlatten; impl Command for ConfigFlatten { fn name(&self) -> &str { "config flatten" } fn signature(&self) -> Signature { Sign...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/config/config_reset.rs
crates/nu-command/src/env/config/config_reset.rs
use chrono::Local; use nu_engine::command_prelude::*; use nu_utils::ConfigFileKind; use std::{io::Write, path::PathBuf}; #[derive(Clone)] pub struct ConfigReset; impl Command for ConfigReset { fn name(&self) -> &str { "config reset" } fn signature(&self) -> Signature { Signature::build(se...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/config/config_.rs
crates/nu-command/src/env/config/config_.rs
use nu_cmd_base::util::get_editor; use nu_engine::{command_prelude::*, env_to_strings, get_full_help}; use nu_protocol::{PipelineMetadata, shell_error::io::IoError}; use nu_system::ForegroundChild; use nu_utils::ConfigFileKind; #[cfg(feature = "os")] use nu_protocol::process::PostWaitCallback; #[derive(Clone)] pub st...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/config/config_use_colors.rs
crates/nu-command/src/env/config/config_use_colors.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct ConfigUseColors; impl Command for ConfigUseColors { fn name(&self) -> &str { "config use-colors" } fn signature(&self) -> Signature { Signature::build(self.name()) .category(Category::Env) .input_output...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/env/config/mod.rs
crates/nu-command/src/env/config/mod.rs
mod config_; mod config_env; mod config_flatten; mod config_nu; mod config_reset; mod config_use_colors; pub use config_::ConfigMeta; pub use config_env::ConfigEnv; pub use config_flatten::ConfigFlatten; pub use config_nu::ConfigNu; pub use config_reset::ConfigReset; pub use config_use_colors::ConfigUseColors;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/open.rs
crates/nu-command/src/stor/open.rs
use crate::database::{MEMORY_DB, SQLiteDatabase}; use nu_engine::command_prelude::*; use nu_protocol::Signals; #[derive(Clone)] pub struct StorOpen; impl Command for StorOpen { fn name(&self) -> &str { "stor open" } fn signature(&self) -> Signature { Signature::build("stor open") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/stor_.rs
crates/nu-command/src/stor/stor_.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Stor; impl Command for Stor { fn name(&self) -> &str { "stor" } fn signature(&self) -> Signature { Signature::build("stor") .category(Category::Database) .input_output_types(vec![(Type:...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/insert.rs
crates/nu-command/src/stor/insert.rs
use crate::database::{MEMORY_DB, SQLiteDatabase, values_to_sql}; use nu_engine::command_prelude::*; use nu_protocol::Signals; use rusqlite::params_from_iter; #[derive(Clone)] pub struct StorInsert; impl Command for StorInsert { fn name(&self) -> &str { "stor insert" } fn signature(&self) -> Signa...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/update.rs
crates/nu-command/src/stor/update.rs
use crate::database::{MEMORY_DB, SQLiteDatabase, values_to_sql}; use nu_engine::command_prelude::*; use nu_protocol::Signals; use rusqlite::params_from_iter; #[derive(Clone)] pub struct StorUpdate; impl Command for StorUpdate { fn name(&self) -> &str { "stor update" } fn signature(&self) -> Signa...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/mod.rs
crates/nu-command/src/stor/mod.rs
mod create; mod delete; mod export; mod import; mod insert; mod open; mod reset; mod stor_; mod update; pub use create::StorCreate; pub use delete::StorDelete; pub use export::StorExport; pub use import::StorImport; pub use insert::StorInsert; pub use open::StorOpen; pub use reset::StorReset; pub use stor_::Stor; pub ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/export.rs
crates/nu-command/src/stor/export.rs
use crate::database::{MEMORY_DB, SQLiteDatabase}; use nu_engine::command_prelude::*; use nu_protocol::Signals; #[derive(Clone)] pub struct StorExport; impl Command for StorExport { fn name(&self) -> &str { "stor export" } fn signature(&self) -> Signature { Signature::build("stor export") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/import.rs
crates/nu-command/src/stor/import.rs
use crate::database::{MEMORY_DB, SQLiteDatabase}; use nu_engine::command_prelude::*; use nu_protocol::Signals; #[derive(Clone)] pub struct StorImport; impl Command for StorImport { fn name(&self) -> &str { "stor import" } fn signature(&self) -> Signature { Signature::build("stor import") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/reset.rs
crates/nu-command/src/stor/reset.rs
use crate::database::{MEMORY_DB, SQLiteDatabase}; use nu_engine::command_prelude::*; use nu_protocol::Signals; #[derive(Clone)] pub struct StorReset; impl Command for StorReset { fn name(&self) -> &str { "stor reset" } fn signature(&self) -> Signature { Signature::build("stor reset") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/create.rs
crates/nu-command/src/stor/create.rs
use crate::database::{MEMORY_DB, SQLiteDatabase}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct StorCreate; impl Command for StorCreate { fn name(&self) -> &str { "stor create" } fn signature(&self) -> Signature { Signature::build("stor create") .input_output_...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/stor/delete.rs
crates/nu-command/src/stor/delete.rs
use crate::database::{MEMORY_DB, SQLiteDatabase}; use nu_engine::command_prelude::*; use nu_protocol::Signals; #[derive(Clone)] pub struct StorDelete; impl Command for StorDelete { fn name(&self) -> &str { "stor delete" } fn signature(&self) -> Signature { Signature::build("stor delete") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/charting/hashable_value.rs
crates/nu-command/src/charting/hashable_value.rs
use chrono::{DateTime, FixedOffset}; use nu_protocol::{Filesize, ShellError, Span, Value}; use std::hash::{Hash, Hasher}; /// A subset of [`Value`], which is hashable. /// And it means that we can put the value into something like /// [`HashMap`](std::collections::HashMap) or [`HashSet`](std::collections::HashSet) for...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/charting/mod.rs
crates/nu-command/src/charting/mod.rs
mod hashable_value; mod histogram; pub use histogram::Histogram;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/charting/histogram.rs
crates/nu-command/src/charting/histogram.rs
use super::hashable_value::HashableValue; use itertools::Itertools; use nu_engine::command_prelude::*; use std::collections::HashMap; #[derive(Clone)] pub struct Histogram; enum PercentageCalcMethod { Normalize, Relative, } impl Command for Histogram { fn name(&self) -> &str { "histogram" } ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/hash/sha256.rs
crates/nu-command/src/hash/sha256.rs
use super::generic_digest::{GenericDigest, HashDigest}; use ::sha2::Sha256; use nu_protocol::{Example, Span, Value}; pub type HashSha256 = GenericDigest<Sha256>; impl HashDigest for Sha256 { fn name() -> &'static str { "sha256" } fn examples() -> Vec<Example<'static>> { vec![ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/hash/hash_.rs
crates/nu-command/src/hash/hash_.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Hash; impl Command for Hash { fn name(&self) -> &str { "hash" } fn signature(&self) -> Signature { Signature::build("hash") .category(Category::Hash) .input_output_types(vec![(Type::Not...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/hash/mod.rs
crates/nu-command/src/hash/mod.rs
mod generic_digest; mod hash_; mod md5; mod sha256; pub use self::hash_::Hash; pub use self::md5::HashMd5; pub use self::sha256::HashSha256;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/hash/md5.rs
crates/nu-command/src/hash/md5.rs
use super::generic_digest::{GenericDigest, HashDigest}; use ::md5::Md5; use nu_protocol::{Example, Span, Value}; pub type HashMd5 = GenericDigest<Md5>; impl HashDigest for Md5 { fn name() -> &'static str { "md5" } fn examples() -> Vec<Example<'static>> { vec![ Example { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/hash/generic_digest.rs
crates/nu-command/src/hash/generic_digest.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use std::{io::Write, marker::PhantomData}; pub trait HashDigest: digest::Digest + Clone { fn name() -> &'static str; fn examples() -> Vec<Example<'static>>; } #[derive(Clone)] pub struct GenericDigest<D: HashDigest> { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_pipe_and_redirect.rs
crates/nu-command/src/help/help_pipe_and_redirect.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct HelpPipeAndRedirect; impl Command for HelpPipeAndRedirect { fn name(&self) -> &str { "help pipe-and-redirect" } fn description(&self) -> &str { "Show help on nushell pipes and redirects." } fn extra_description(&self)...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_commands.rs
crates/nu-command/src/help/help_commands.rs
use crate::filters::find_internal; use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct HelpCommands; impl Command for HelpCommands { fn name(&self) -> &str { "help commands" } fn description(&self) -> &str { "Show help on nushell commands." } fn signat...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_escapes.rs
crates/nu-command/src/help/help_escapes.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct HelpEscapes; impl Command for HelpEscapes { fn name(&self) -> &str { "help escapes" } fn description(&self) -> &str { "Show help on nushell string escapes." } fn signature(&self) -> Signature { Signature::buil...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_externs.rs
crates/nu-command/src/help/help_externs.rs
use crate::filters::find_internal; use nu_engine::{command_prelude::*, get_full_help, scope::ScopeData}; #[derive(Clone)] pub struct HelpExterns; impl Command for HelpExterns { fn name(&self) -> &str { "help externs" } fn description(&self) -> &str { "Show help on nushell externs." } ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_aliases.rs
crates/nu-command/src/help/help_aliases.rs
use crate::filters::find_internal; use nu_engine::{command_prelude::*, get_full_help, scope::ScopeData}; #[derive(Clone)] pub struct HelpAliases; impl Command for HelpAliases { fn name(&self) -> &str { "help aliases" } fn description(&self) -> &str { "Show help on nushell aliases." } ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/mod.rs
crates/nu-command/src/help/mod.rs
mod help_; mod help_aliases; mod help_commands; mod help_escapes; mod help_externs; mod help_modules; mod help_operators; mod help_pipe_and_redirect; pub use help_::Help; pub use help_aliases::HelpAliases; pub use help_commands::HelpCommands; pub use help_escapes::HelpEscapes; pub use help_externs::HelpExterns; pub us...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_modules.rs
crates/nu-command/src/help/help_modules.rs
use crate::filters::find_internal; use nu_engine::{command_prelude::*, scope::ScopeData}; use nu_protocol::DeclId; #[derive(Clone)] pub struct HelpModules; impl Command for HelpModules { fn name(&self) -> &str { "help modules" } fn description(&self) -> &str { "Show help on nushell module...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_operators.rs
crates/nu-command/src/help/help_operators.rs
use nu_engine::command_prelude::*; use nu_protocol::ast::{Assignment, Bits, Boolean, Comparison, Math, Operator}; use strum::IntoEnumIterator; #[derive(Clone)] pub struct HelpOperators; impl Command for HelpOperators { fn name(&self) -> &str { "help operators" } fn description(&self) -> &str { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/help/help_.rs
crates/nu-command/src/help/help_.rs
use crate::help::{help_aliases, help_commands, help_modules}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct Help; impl Command for Help { fn name(&self) -> &str { "help" } fn signature(&self) -> Signature { Signature::build("help") .input_output_types(vec![(Ty...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/humanize.rs
crates/nu-command/src/date/humanize.rs
use crate::date::utils::parse_date_from_string; use chrono::{DateTime, FixedOffset, Local}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct DateHumanize; impl Command for DateHumanize { fn name(&self) -> &str { "date humanize" } fn signature(&self) -> Signature { Signature:...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/parser.rs
crates/nu-command/src/date/parser.rs
// Modified from chrono::format::scan use chrono::{DateTime, FixedOffset, Local, Offset, TimeZone}; use chrono_tz::Tz; use titlecase::titlecase; #[derive(Debug, Clone, PartialEq, Eq, Copy)] pub enum ParseErrorKind { /// Given field is out of permitted range. OutOfRange, /// The input string has some inva...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/from_human.rs
crates/nu-command/src/date/from_human.rs
use chrono::{Local, TimeZone}; use human_date_parser::{ParseResult, from_human_time}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct DateFromHuman; impl Command for DateFromHuman { fn name(&self) -> &str { "date from-human" } fn signature(&self) -> Signature { Signature::b...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/date_.rs
crates/nu-command/src/date/date_.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Date; impl Command for Date { fn name(&self) -> &str { "date" } fn signature(&self) -> Signature { Signature::build("date") .category(Category::Date) .input_output_types(vec![(Type::Not...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/utils.rs
crates/nu-command/src/date/utils.rs
use chrono::{DateTime, FixedOffset, Local, LocalResult, TimeZone}; use nu_protocol::{ShellError, Span, Value, record}; pub(crate) fn parse_date_from_string( input: &str, span: Span, ) -> Result<DateTime<FixedOffset>, Value> { match dtparse::parse(input) { Ok((native_dt, fixed_offset)) => { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/mod.rs
crates/nu-command/src/date/mod.rs
mod date_; mod from_human; mod humanize; mod list_timezone; mod now; mod parser; mod to_timezone; mod utils; pub use date_::Date; pub use from_human::DateFromHuman; pub use humanize::DateHumanize; pub use list_timezone::DateListTimezones; pub use now::DateNow; pub use to_timezone::DateToTimezone; pub(crate) use utils:...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/list_timezone.rs
crates/nu-command/src/date/list_timezone.rs
use chrono_tz::TZ_VARIANTS; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct DateListTimezones; impl Command for DateListTimezones { fn name(&self) -> &str { "date list-timezone" } fn signature(&self) -> Signature { Signature::build("date list-timezone") .input_o...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/now.rs
crates/nu-command/src/date/now.rs
use chrono::Local; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct DateNow; impl Command for DateNow { fn name(&self) -> &str { "date now" } fn signature(&self) -> Signature { Signature::build("date now") .input_output_types(vec![(Type::Nothing, Type::Date)]) ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/date/to_timezone.rs
crates/nu-command/src/date/to_timezone.rs
use std::sync::LazyLock; use super::parser::datetime_in_timezone; use crate::date::utils::parse_date_from_string; use chrono::{DateTime, FixedOffset, Local, LocalResult, TimeZone}; use nu_engine::command_prelude::*; static TIMEZONES: LazyLock<Vec<&'static str>> = LazyLock::new(|| chrono_tz::TZ_VARIANTS.iter().map...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/abs.rs
crates/nu-command/src/math/abs.rs
use crate::math::utils::ensure_bounded; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathAbs; impl Command for MathAbs { fn name(&self) -> &str { "math abs" } fn signature(&self) -> Signature { Signature::build("math abs") .input_output_types(vec![ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/median.rs
crates/nu-command/src/math/median.rs
use crate::math::{avg::average, utils::run_with_function}; use nu_engine::command_prelude::*; use std::cmp::Ordering; #[derive(Clone)] pub struct MathMedian; impl Command for MathMedian { fn name(&self) -> &str { "math median" } fn signature(&self) -> Signature { Signature::build("math me...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/log.rs
crates/nu-command/src/math/log.rs
use crate::math::utils::ensure_bounded; use nu_engine::command_prelude::*; use nu_protocol::Signals; #[derive(Clone)] pub struct MathLog; impl Command for MathLog { fn name(&self) -> &str { "math log" } fn signature(&self) -> Signature { Signature::build("math log") .required(...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/sum.rs
crates/nu-command/src/math/sum.rs
use crate::math::{ reducers::{Reduce, reducer_for}, utils::run_with_function, }; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathSum; impl Command for MathSum { fn name(&self) -> &str { "math sum" } fn signature(&self) -> Signature { Signature::build("math sum")...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/product.rs
crates/nu-command/src/math/product.rs
use crate::math::{ reducers::{Reduce, reducer_for}, utils::run_with_function, }; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathProduct; impl Command for MathProduct { fn name(&self) -> &str { "math product" } fn signature(&self) -> Signature { Signature::build...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/max.rs
crates/nu-command/src/math/max.rs
use crate::math::{ reducers::{Reduce, reducer_for}, utils::run_with_function, }; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathMax; impl Command for MathMax { fn name(&self) -> &str { "math max" } fn signature(&self) -> Signature { Signature::build("math max")...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/round.rs
crates/nu-command/src/math/round.rs
use crate::math::utils::ensure_bounded; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathRound; impl Command for MathRound { fn name(&self) -> &str { "math round" } fn signature(&self) -> Signature { Signature::build("math round") .input_output_types(vec![ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/min.rs
crates/nu-command/src/math/min.rs
use crate::math::{ reducers::{Reduce, reducer_for}, utils::run_with_function, }; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathMin; impl Command for MathMin { fn name(&self) -> &str { "math min" } fn signature(&self) -> Signature { Signature::build("math min")...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/utils.rs
crates/nu-command/src/math/utils.rs
use core::slice; use indexmap::IndexMap; use nu_protocol::{ IntoPipelineData, PipelineData, Range, ShellError, Signals, Span, Value, engine::Call, }; pub fn run_with_function( call: &Call, input: PipelineData, mf: impl Fn(&[Value], Span, Span) -> Result<Value, ShellError>, ) -> Result<PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/variance.rs
crates/nu-command/src/math/variance.rs
use crate::math::utils::run_with_function; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathVariance; impl Command for MathVariance { fn name(&self) -> &str { "math variance" } fn signature(&self) -> Signature { Signature::build("math variance") .input_output...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/mod.rs
crates/nu-command/src/math/mod.rs
mod abs; mod avg; mod ceil; mod floor; mod log; pub mod math_; mod max; mod median; mod min; mod mode; mod product; mod reducers; mod round; mod sqrt; mod stddev; mod sum; mod utils; mod variance; pub use abs::MathAbs; pub use avg::MathAvg; pub use ceil::MathCeil; pub use floor::MathFloor; pub use math_::MathCommand a...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/math_.rs
crates/nu-command/src/math/math_.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct MathCommand; impl Command for MathCommand { fn name(&self) -> &str { "math" } fn signature(&self) -> Signature { Signature::build("math") .category(Category::Math) .input_output_types(v...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/sqrt.rs
crates/nu-command/src/math/sqrt.rs
use crate::math::utils::ensure_bounded; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathSqrt; impl Command for MathSqrt { fn name(&self) -> &str { "math sqrt" } fn signature(&self) -> Signature { Signature::build("math sqrt") .input_output_types(vec![ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/reducers.rs
crates/nu-command/src/math/reducers.rs
use nu_protocol::{ShellError, Span, Value}; use std::cmp::Ordering; pub enum Reduce { Summation, Product, Minimum, Maximum, } pub type ReducerFunction = Box<dyn Fn(Value, Vec<Value>, Span, Span) -> Result<Value, ShellError> + Send + Sync + 'static>; pub fn reducer_for(command: Reduce) -> ReducerF...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/ceil.rs
crates/nu-command/src/math/ceil.rs
use crate::math::utils::ensure_bounded; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathCeil; impl Command for MathCeil { fn name(&self) -> &str { "math ceil" } fn signature(&self) -> Signature { Signature::build("math ceil") .input_output_types(vec![ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/avg.rs
crates/nu-command/src/math/avg.rs
use crate::math::{ reducers::{Reduce, reducer_for}, utils::run_with_function, }; use nu_engine::command_prelude::*; const NS_PER_SEC: i64 = 1_000_000_000; #[derive(Clone)] pub struct MathAvg; impl Command for MathAvg { fn name(&self) -> &str { "math avg" } fn signature(&self) -> Signature...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/mode.rs
crates/nu-command/src/math/mode.rs
use crate::math::utils::run_with_function; use nu_engine::command_prelude::*; use std::{cmp::Ordering, collections::HashMap}; #[derive(Clone)] pub struct MathMode; #[derive(Hash, Eq, PartialEq, Debug)] enum NumberTypes { Float, Int, Duration, Filesize, } #[derive(Hash, Eq, PartialEq, Debug)] struct H...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/floor.rs
crates/nu-command/src/math/floor.rs
use crate::math::utils::ensure_bounded; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathFloor; impl Command for MathFloor { fn name(&self) -> &str { "math floor" } fn signature(&self) -> Signature { Signature::build("math floor") .input_output_types(vec![ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/math/stddev.rs
crates/nu-command/src/math/stddev.rs
use super::variance::compute_variance as variance; use crate::math::utils::run_with_function; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct MathStddev; impl Command for MathStddev { fn name(&self) -> &str { "math stddev" } fn signature(&self) -> Signature { Signature::bui...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/fill.rs
crates/nu-command/src/conversions/fill.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use print_positions::print_positions; #[derive(Clone)] pub struct Fill; struct Arguments { width: usize, alignment: FillAlignment, character: String, cell_paths: Option<Vec<CellPath>>, } impl CmdArgument for A...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/split_cell_path.rs
crates/nu-command/src/conversions/split_cell_path.rs
use nu_engine::command_prelude::*; use nu_protocol::{IntoValue, ast::PathMember, casing::Casing}; #[derive(Clone)] pub struct SplitCellPath; impl Command for SplitCellPath { fn name(&self) -> &str { "split cell-path" } fn signature(&self) -> Signature { Signature::build(self.name()) ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/mod.rs
crates/nu-command/src/conversions/mod.rs
mod fill; pub(crate) mod into; mod split_cell_path; pub use fill::Fill; pub use into::*; pub use split_cell_path::SplitCellPath;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/filesize.rs
crates/nu-command/src/conversions/into/filesize.rs
use nu_cmd_base::input_handler::{CellPathOnlyArgs, operate}; use nu_engine::command_prelude::*; use nu_utils::get_system_locale; #[derive(Clone)] pub struct IntoFilesize; impl Command for IntoFilesize { fn name(&self) -> &str { "into filesize" } fn signature(&self) -> Signature { Signatu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/command.rs
crates/nu-command/src/conversions/into/command.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Into; impl Command for Into { fn name(&self) -> &str { "into" } fn signature(&self) -> Signature { Signature::build("into") .category(Category::Conversions) .input_output_types(vec![(Ty...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/datetime.rs
crates/nu-command/src/conversions/into/datetime.rs
use crate::{generate_strftime_list, parse_date_from_string}; use chrono::{ DateTime, Datelike, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Timelike, Utc, }; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; const HOUR: i32 = 60 * 60; const ALLOWED...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/string.rs
crates/nu-command/src/conversions/into/string.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_protocol::Config; use nu_utils::get_system_locale; use num_format::ToFormattedString; use std::sync::Arc; struct Arguments { decimals_value: Option<i64>, cell_paths: Option<Vec<CellPath>>, config: Arc<Config>,...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/value.rs
crates/nu-command/src/conversions/into/value.rs
use std::sync::OnceLock; use nu_engine::command_prelude::*; use nu_protocol::{ BlockId, DeprecationEntry, DeprecationType, ReportMode, debugger::WithoutDebug, report_shell_warning, }; // TODO: remove this after deprecation phase static DEPRECATED_REDIRECT_BLOCK_ID: OnceLock<BlockId> = OnceLock::new(); #[deri...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/glob.rs
crates/nu-command/src/conversions/into/glob.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; struct Arguments { cell_paths: Option<Vec<CellPath>>, } impl CmdArgument for Arguments { fn take_cell_paths(&mut self) -> Option<Vec<CellPath>> { self.cell_paths.take() } } #[derive(Clone)] pub struct IntoG...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/bool.rs
crates/nu-command/src/conversions/into/bool.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct IntoBool; impl Command for IntoBool { fn name(&self) -> &str { "into bool" } fn signature(&self) -> Signature { Signature::build("into bool") .input_output_ty...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/record.rs
crates/nu-command/src/conversions/into/record.rs
use chrono::{DateTime, Datelike, FixedOffset, Timelike}; use nu_engine::command_prelude::*; use nu_protocol::format_duration_as_timeperiod; #[derive(Clone)] pub struct IntoRecord; impl Command for IntoRecord { fn name(&self) -> &str { "into record" } fn signature(&self) -> Signature { Sig...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/mod.rs
crates/nu-command/src/conversions/into/mod.rs
mod binary; mod bool; mod cell_path; mod command; mod datetime; mod duration; mod filesize; mod float; mod glob; mod int; mod record; mod string; mod value; pub use binary::IntoBinary; pub use bool::IntoBool; pub use cell_path::IntoCellPath; pub use command::Into; pub use datetime::IntoDatetime; pub use duration::Into...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/binary.rs
crates/nu-command/src/conversions/into/binary.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; struct Arguments { cell_paths: Option<Vec<CellPath>>, compact: bool, little_endian: bool, } impl CmdArgument for Arguments { fn take_cell_paths(&mut self) -> Option<Vec<CellPath>> { self.cell_paths.take(...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/float.rs
crates/nu-command/src/conversions/into/float.rs
use nu_cmd_base::input_handler::{CellPathOnlyArgs, operate}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct IntoFloat; impl Command for IntoFloat { fn name(&self) -> &str { "into float" } fn signature(&self) -> Signature { Signature::build("into float") .input_...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/cell_path.rs
crates/nu-command/src/conversions/into/cell_path.rs
use nu_engine::command_prelude::*; use nu_protocol::{ast::PathMember, casing::Casing}; #[derive(Clone)] pub struct IntoCellPath; impl Command for IntoCellPath { fn name(&self) -> &str { "into cell-path" } fn signature(&self) -> nu_protocol::Signature { Signature::build("into cell-path") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/int.rs
crates/nu-command/src/conversions/into/int.rs
use chrono::{FixedOffset, TimeZone}; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_utils::get_system_locale; struct Arguments { radix: u32, cell_paths: Option<Vec<CellPath>>, signed: bool, little_endian: bool, } impl CmdArgument for Arguments { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/conversions/into/duration.rs
crates/nu-command/src/conversions/into/duration.rs
use std::str::FromStr; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_parser::{DURATION_UNIT_GROUPS, parse_unit_value}; use nu_protocol::{SUPPORTED_DURATION_UNITS, Unit, ast::Expr}; const NS_PER_US: i64 = 1_000; const NS_PER_MS: i64 = 1_000_000; const NS_PER_SEC: i64...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/detect.rs
crates/nu-command/src/strings/detect.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Detect; impl Command for Detect { fn name(&self) -> &str { "detect" } fn signature(&self) -> Signature { Signature::build("detect") .category(Category::Strings) .input_output_types(vec!...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false