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-cmd-plugin/src/commands/plugin/rm.rs
crates/nu-cmd-plugin/src/commands/plugin/rm.rs
use nu_engine::command_prelude::*; use crate::util::{canonicalize_possible_filename_arg, modify_plugin_file}; #[derive(Clone)] pub struct PluginRm; impl Command for PluginRm { fn name(&self) -> &str { "plugin rm" } 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-cmd-plugin/src/commands/plugin/list.rs
crates/nu-cmd-plugin/src/commands/plugin/list.rs
use itertools::{EitherOrBoth, Itertools}; use nu_engine::command_prelude::*; use nu_protocol::{IntoValue, PluginRegistryItemData}; use crate::util::read_plugin_file; #[derive(Clone)] pub struct PluginList; impl Command for PluginList { fn name(&self) -> &str { "plugin list" } fn signature(&self)...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-cmd-plugin/src/commands/plugin/mod.rs
crates/nu-cmd-plugin/src/commands/plugin/mod.rs
use nu_engine::{command_prelude::*, get_full_help}; mod add; mod list; mod rm; mod stop; mod use_; pub use add::PluginAdd; pub use list::PluginList; pub use rm::PluginRm; pub use stop::PluginStop; pub use use_::PluginUse; #[derive(Clone)] pub struct PluginCommand; impl Command for PluginCommand { fn name(&self)...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-cmd-plugin/src/commands/plugin/add.rs
crates/nu-cmd-plugin/src/commands/plugin/add.rs
use crate::util::{get_plugin_dirs, modify_plugin_file}; use nu_engine::command_prelude::*; use nu_plugin_engine::{GetPlugin, PersistentPlugin}; use nu_protocol::{ PluginGcConfig, PluginIdentity, PluginRegistryItem, RegisteredPlugin, shell_error::io::IoError, }; use std::{path::PathBuf, sync::Arc}; #[derive(Clone)]...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-cmd-plugin/src/commands/plugin/stop.rs
crates/nu-cmd-plugin/src/commands/plugin/stop.rs
use nu_engine::command_prelude::*; use crate::util::canonicalize_possible_filename_arg; #[derive(Clone)] pub struct PluginStop; impl Command for PluginStop { fn name(&self) -> &str { "plugin stop" } fn signature(&self) -> Signature { Signature::build("plugin stop") .input_out...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/foreground.rs
crates/nu-system/src/foreground.rs
use std::sync::{Arc, atomic::AtomicU32}; use std::io; use std::process::{Child, Command}; use crate::ExitStatus; #[cfg(unix)] use std::{io::IsTerminal, sync::atomic::Ordering}; #[cfg(unix)] pub use child_pgroup::stdin_fd; #[cfg(unix)] use nix::{sys::signal, sys::wait, unistd::Pid}; /// A simple wrapper for [`std...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/lib.rs
crates/nu-system/src/lib.rs
#![doc = include_str!("../README.md")] mod exit_status; mod foreground; mod util; #[cfg(target_os = "freebsd")] mod freebsd; #[cfg(any(target_os = "android", target_os = "linux"))] mod linux; #[cfg(target_os = "macos")] mod macos; #[cfg(any(target_os = "netbsd", target_os = "openbsd"))] mod netbsd; pub mod os_info; #[...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/macos.rs
crates/nu-system/src/macos.rs
use libc::{c_int, c_void, size_t}; use libproc::libproc::bsd_info::BSDInfo; use libproc::libproc::file_info::{ListFDs, ProcFDType, pidfdinfo}; use libproc::libproc::net_info::{InSockInfo, SocketFDInfo, SocketInfoKind, TcpSockInfo}; use libproc::libproc::pid_rusage::{RUsageInfoV2, pidrusage}; use libproc::libproc::proc_...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/linux.rs
crates/nu-system/src/linux.rs
use log::info; use procfs::process::{FDInfo, Io, Process, Stat, Status}; use procfs::{ProcError, ProcessCGroups, WithCurrentSystemInfo}; use std::path::PathBuf; use std::thread; use std::time::{Duration, Instant}; pub enum ProcessTask { Process(Process), Task { stat: Box<Stat>, owner: u32 }, } impl ProcessTas...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/netbsd.rs
crates/nu-system/src/netbsd.rs
//! This is used for both NetBSD and OpenBSD, because they are fairly similar. use itertools::{EitherOrBoth, Itertools}; use libc::{CTL_HW, CTL_KERN, KERN_PROC_ALL, KERN_PROC_ARGS, KERN_PROC_ARGV, sysctl}; use std::{ io, mem::{self, MaybeUninit}, ptr, time::{Duration, Instant}, }; #[cfg(target_os = "n...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/util.rs
crates/nu-system/src/util.rs
use std::io; use std::process::Command as CommandSys; /// Tries to forcefully kill a process by its PID pub fn kill_by_pid(pid: i64) -> Result<(), KillByPidError> { let mut cmd = build_kill_command(true, std::iter::once(pid), None); let output = cmd.output().map_err(KillByPidError::Output)?; match output...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/windows.rs
crates/nu-system/src/windows.rs
// Attribution: a lot of this came from procs https://github.com/dalance/procs // and sysinfo https://github.com/GuillaumeGomez/sysinfo use chrono::offset::TimeZone; use chrono::{Local, NaiveDate}; use libc::c_void; use ntapi::ntrtl::RTL_USER_PROCESS_PARAMETERS; use ntapi::ntwow64::{PEB32, RTL_USER_PROCESS_PARAMETERS...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/exit_status.rs
crates/nu-system/src/exit_status.rs
use std::process; #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ExitStatus { Exited(i32), #[cfg(unix)] Signaled { signal: i32, core_dumped: bool, }, } impl ExitStatus { pub fn code(self) -> i32 { match self { ExitStatus::Exited(code) => code, ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/freebsd.rs
crates/nu-system/src/freebsd.rs
use itertools::{EitherOrBoth, Itertools}; use libc::{ CTL_HW, CTL_KERN, KERN_PROC, KERN_PROC_ALL, KERN_PROC_ARGS, TDF_IDLETD, c_char, kinfo_proc, sysctl, }; use std::{ ffi::CStr, io, mem::{self, MaybeUninit}, ptr, time::{Duration, Instant}, }; #[derive(Debug)] pub struct ProcessInfo { p...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/src/os_info.rs
crates/nu-system/src/os_info.rs
pub fn get_os_name() -> &'static str { std::env::consts::OS } pub fn get_os_arch() -> &'static str { std::env::consts::ARCH } pub fn get_os_family() -> &'static str { std::env::consts::FAMILY } pub fn get_kernel_version() -> String { match sysinfo::System::kernel_version() { Some(v) => v, ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-system/examples/sys_demo.rs
crates/nu-system/examples/sys_demo.rs
fn main() { #[cfg(any( target_os = "android", target_os = "linux", target_os = "macos", target_os = "windows" ))] { let cores = std::thread::available_parallelism() .map(|p| p.get()) .unwrap_or(1); for run in 1..=10 { for pr...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/lib.rs
crates/nu-table/src/lib.rs
#![doc = include_str!("../README.md")] mod table; mod table_theme; mod types; mod unstructured_table; mod util; pub mod common; pub use common::{StringResult, TableResult}; pub use nu_color_config::TextStyle; pub use table::{NuRecords, NuRecordsValue, NuTable}; pub use table_theme::TableTheme; pub use types::{Collap...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/unstructured_table.rs
crates/nu-table/src/unstructured_table.rs
use nu_color_config::StyleComputer; use nu_protocol::{Config, Record, Span, TableIndent, Value}; use tabled::{ grid::{ ansi::ANSIStr, config::{Borders, CompactMultilineConfig}, dimension::{DimensionPriority, PoolTableDimension}, }, settings::{Alignment, Color, Padding, TableOption},...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/table.rs
crates/nu-table/src/table.rs
// TODO: Stop building `tabled -e` when it's clear we are out of terminal // TODO: Stop building `tabled` when it's clear we are out of terminal // NOTE: TODO the above we could expose something like [`WidthCtrl`] in which case we could also laverage the width list build right away. // currently it seems like we ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/util.rs
crates/nu-table/src/util.rs
use nu_color_config::StyleComputer; use tabled::{ grid::{ ansi::{ANSIBuf, ANSIStr}, records::vec_records::Text, util::string::get_text_width, }, settings::{ Color, width::{Truncate, Wrap}, }, }; use crate::common::get_leading_trailing_space_style; pub fn string...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/common.rs
crates/nu-table/src/common.rs
use crate::{TableOutput, TableTheme, clean_charset, colorize_space_str, string_wrap}; use nu_color_config::{Alignment, StyleComputer, TextStyle}; use nu_protocol::{Config, FooterMode, ShellError, Span, TableMode, TrimStrategy, Value}; use nu_utils::terminal_size; pub type NuText = (String, TextStyle); pub type TableRe...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/table_theme.rs
crates/nu-table/src/table_theme.rs
use tabled::settings::{ style::{HorizontalLine, Style}, themes::Theme, }; #[derive(Debug, Clone)] pub struct TableTheme { base: Theme, full: Theme, } impl TableTheme { fn new(base: impl Into<Theme>, full: impl Into<Theme>) -> Self { Self { base: base.into(), full: f...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/types/general.rs
crates/nu-table/src/types/general.rs
use nu_color_config::TextStyle; use nu_engine::column::get_columns; use nu_protocol::{Config, Record, ShellError, Value}; use crate::{ NuRecordsValue, NuTable, StringResult, TableOpts, TableOutput, TableResult, clean_charset, colorize_space, common::{ INDEX_COLUMN_NAME, NuText, check_value, configu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/types/expanded.rs
crates/nu-table/src/types/expanded.rs
use std::cmp::max; use nu_color_config::{Alignment, StyleComputer, TextStyle}; use nu_engine::column::get_columns; use nu_protocol::{Config, Record, ShellError, Span, Value}; use tabled::grid::records::vec_records::Cell; use crate::{ NuTable, TableOpts, TableOutput, common::{ INDEX_COLUMN_NAME, NuText...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/types/collapse.rs
crates/nu-table/src/types/collapse.rs
use nu_ansi_term::Style; use nu_color_config::StyleComputer; use nu_protocol::{Config, Value}; use nu_utils::SharedCow; use crate::{ StringResult, TableOpts, UnstructuredTable, common::{get_index_style, load_theme, nu_value_to_string_clean}, }; pub struct CollapsedTable; impl CollapsedTable { pub fn buil...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/src/types/mod.rs
crates/nu-table/src/types/mod.rs
use nu_color_config::StyleComputer; use nu_protocol::{Config, Signals, Span, TableIndexMode, TableMode}; use crate::{NuTable, common::INDEX_COLUMN_NAME}; mod collapse; mod expanded; mod general; pub use collapse::CollapsedTable; pub use expanded::ExpandedTable; pub use general::JustTable; pub struct TableOutput { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/tests/expand.rs
crates/nu-table/tests/expand.rs
mod common; use common::{TestCase, create_row, create_table}; use nu_table::TableTheme as theme; #[test] fn test_expand() { let table = create_table( vec![create_row(4); 3], TestCase::new(50).theme(theme::rounded()).header().expand(), ); assert_eq!( table.unwrap(), "╭────...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/tests/constrains.rs
crates/nu-table/tests/constrains.rs
mod common; use nu_protocol::TrimStrategy; use nu_table::{NuTable, TableTheme as theme}; use common::{TestCase, create_row, test_table}; use tabled::grid::records::vec_records::Text; #[test] fn data_and_header_has_different_size_doesnt_work() { let mut table = NuTable::from(vec![create_row(5), create_row(5), cr...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/tests/style.rs
crates/nu-table/tests/style.rs
mod common; use common::{TestCase, create_row as row}; use nu_table::{NuTable, TableTheme as theme}; use tabled::grid::records::vec_records::Text; #[test] fn test_rounded() { assert_eq!( create_table(vec![row(4); 3], true, theme::rounded()), "╭───┬───┬───┬───╮\n\ │ 0 │ 1 │ 2 │ 3 │\n\ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/tests/common.rs
crates/nu-table/tests/common.rs
#![allow(dead_code)] use nu_protocol::TrimStrategy; use nu_table::{NuTable, TableTheme, string_width}; use tabled::grid::records::vec_records::Text; #[derive(Debug, Clone)] pub struct TestCase { theme: TableTheme, with_header: bool, with_footer: bool, with_index: bool, expand: bool, strategy: ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-table/examples/table_demo.rs
crates/nu-table/examples/table_demo.rs
use nu_ansi_term::{Color, Style}; use nu_color_config::TextStyle; use nu_table::{NuTable, TableTheme}; use tabled::grid::records::vec_records::Text; fn main() { let args: Vec<_> = std::env::args().collect(); let mut width = 0; if args.len() > 1 { width = args[1].parse::<usize>().expect("Need a wid...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/path.rs
crates/nu-path/src/path.rs
use crate::form::{ Absolute, Any, Canonical, IsAbsolute, MaybeRelative, PathCast, PathForm, PathJoin, PathPush, PathSet, Relative, }; use ref_cast::{RefCastCustom, ref_cast_custom}; use std::{ borrow::{Borrow, Cow}, cmp::Ordering, collections::TryReserveError, convert::Infallible, ffi::{OsSt...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/lib.rs
crates/nu-path/src/lib.rs
#![doc = include_str!("../README.md")] mod assert_path_eq; mod components; pub mod dots; pub mod expansions; pub mod form; mod helpers; mod path; mod tilde; mod trailing_slash; pub use components::components; pub use expansions::{ canonicalize_with, expand_path, expand_path_with, expand_to_real_path, locate_in_dir...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/dots.rs
crates/nu-path/src/dots.rs
#[cfg(windows)] use omnipath::WinPathExt; use std::path::{Component, Path, PathBuf, Prefix}; /// Normalize the path, expanding occurrences of n-dots. /// /// It performs the same normalization as `nu_path::components()`, except it also expands n-dots, /// such as "..." and "....", into multiple "..". /// /// The resul...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/helpers.rs
crates/nu-path/src/helpers.rs
#[cfg(windows)] use std::path::{Component, Prefix}; use std::path::{Path, PathBuf}; use crate::AbsolutePathBuf; pub fn home_dir() -> Option<AbsolutePathBuf> { dirs::home_dir().and_then(|home| AbsolutePathBuf::try_from(home).ok()) } /// Return the data directory for the current platform or XDG_DATA_HOME if specif...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/form.rs
crates/nu-path/src/form.rs
use std::ffi::OsStr; mod private { use std::ffi::OsStr; // This trait should not be extended by external crates in order to uphold safety guarantees. // As such, this trait is put inside a private module to prevent external impls. // This ensures that all possible [`PathForm`]s can only be defined her...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/assert_path_eq.rs
crates/nu-path/src/assert_path_eq.rs
//! Path equality in Rust is defined by comparing their `components()`. However, //! `Path::components()` will perform its own normalization, which makes //! `assert_eq!` not suitable testing. //! //! This module provides two macros, `assert_path_eq!` and `assert_path_ne!`, //! which converts path to string before comp...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/trailing_slash.rs
crates/nu-path/src/trailing_slash.rs
use std::{ borrow::Cow, path::{Path, PathBuf}, }; /// Strip any trailing slashes from a non-root path. This is required in some contexts, for example /// for the `PWD` environment variable. pub fn strip_trailing_slash(path: &Path) -> Cow<'_, Path> { if has_trailing_slash(path) { // If there are, th...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/tilde.rs
crates/nu-path/src/tilde.rs
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "android")))] use pwd::Passwd; use std::path::{Path, PathBuf}; #[cfg(target_os = "macos")] const FALLBACK_USER_HOME_BASE_DIR: &str = "/Users"; #[cfg(target_os = "windows")] const FALLBACK_USER_HOME_BASE_DIR: &str = "C:\\Users\\"; #[cfg(all(unix, not(target_os...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/components.rs
crates/nu-path/src/components.rs
//! A wrapper around `Path::components()` that preserves trailing slashes. //! //! Trailing slashes are semantically important for us. For example, POSIX says //! that path resolution should always follow the final symlink if it has //! trailing slashes. Here's a demonstration: //! //! ```sh //! mkdir foo //! ln -s foo...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/src/expansions.rs
crates/nu-path/src/expansions.rs
#[cfg(windows)] use omnipath::WinPathExt; use std::io; use std::path::{Path, PathBuf}; use super::dots::{expand_dots, expand_ndots}; use super::tilde::expand_tilde; // Join a path relative to another path. Paths starting with tilde are considered as absolute. fn join_path_relative<P, Q>(path: P, relative_to: Q, expan...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-path/fuzz/fuzz_targets/path_fuzzer.rs
crates/nu-path/fuzz/fuzz_targets/path_fuzzer.rs
#![no_main] use libfuzzer_sys::fuzz_target; use nu_path::{expand_path_with, expand_tilde, expand_to_real_path}; fuzz_target!(|data: &[u8]| { if let Ok(s) = std::str::from_utf8(data) { let path = std::path::Path::new(s); // Fuzzing expand_to_real_path function let _ = expand_to_real_path(p...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/parse_keywords.rs
crates/nu-parser/src/parse_keywords.rs
use crate::{ exportable::Exportable, parse_block, parser::{ ArgumentParsingLevel, CallKind, compile_block, compile_block_with_id, parse_attribute, parse_redirection, redirecting_builtin_error, }, type_check::{check_block_input_output, type_compatible}, }; use log::trace; use nu_path...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/lib.rs
crates/nu-parser/src/lib.rs
#![doc = include_str!("../README.md")] mod deparse; mod exportable; mod flatten; mod known_external; mod lex; mod lite_parser; mod parse_keywords; mod parse_patterns; mod parse_shape_specs; mod parser; mod type_check; pub use deparse::escape_for_script_arg; pub use flatten::{ FlatShape, flatten_block, flatten_expr...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/parser.rs
crates/nu-parser/src/parser.rs
#![allow(clippy::byte_char_slices)] use crate::{ Token, TokenContents, lex::{LexState, is_assignment_operator, lex, lex_n_tokens, lex_signature}, lite_parser::{LiteCommand, LitePipeline, LiteRedirection, LiteRedirectionTarget, lite_parse}, parse_keywords::*, parse_patterns::parse_pattern, parse...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/flatten.rs
crates/nu-parser/src/flatten.rs
use nu_protocol::{ DeclId, GetSpan, Span, SyntaxShape, VarId, ast::{ Argument, Block, Expr, Expression, ExternalArgument, ImportPatternMember, ListItem, MatchPattern, PathMember, Pattern, Pipeline, PipelineElement, PipelineRedirection, RecordItem, }, engine::StateWorkingSet, }; u...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/type_check.rs
crates/nu-parser/src/type_check.rs
use nu_protocol::{ ParseError, Span, Type, ast::{Assignment, Block, Comparison, Expr, Expression, Math, Operator, Pipeline, Range}, combined_type_string, engine::StateWorkingSet, }; fn type_error( op: Operator, op_span: Span, lhs: &Expression, rhs: &Expression, is_supported: fn(&Typ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/deparse.rs
crates/nu-parser/src/deparse.rs
use nu_utils::escape_quote_string; fn string_should_be_quoted(input: &str) -> bool { input.starts_with('$') || input.chars().any(|c| { c == ' ' || c == '(' || c == '\'' || c == '`' || c == '"' || c == '\\' ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/parse_patterns.rs
crates/nu-parser/src/parse_patterns.rs
#![allow(clippy::byte_char_slices)] use crate::{ lex, lite_parse, parser::{is_variable, parse_value}, }; use nu_protocol::{ ParseError, Span, SyntaxShape, Type, VarId, ast::{MatchPattern, Pattern}, engine::StateWorkingSet, }; pub fn garbage(span: Span) -> MatchPattern { MatchPattern { p...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/parse_shape_specs.rs
crates/nu-parser/src/parse_shape_specs.rs
#![allow(clippy::byte_char_slices)] use std::borrow::Cow; use crate::{TokenContents, lex::lex_signature, parser::parse_value}; use nu_protocol::{ Completion, IntoSpanned, ParseError, ShellError, Span, Spanned, SyntaxShape, Type, Value, engine::StateWorkingSet, eval_const::eval_constant, }; use nu_utils::NuCow...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/exportable.rs
crates/nu-parser/src/exportable.rs
use nu_protocol::{DeclId, ModuleId, VarId}; /// Symbol that can be exported with its associated name and ID pub enum Exportable { Decl { name: Vec<u8>, id: DeclId }, Module { name: Vec<u8>, id: ModuleId }, VarDecl { name: Vec<u8>, id: VarId }, }
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/lite_parser.rs
crates/nu-parser/src/lite_parser.rs
//! Lite parsing converts a flat stream of tokens from the lexer to a syntax element structure that //! can be parsed. use crate::{Token, TokenContents}; use itertools::{Either, Itertools}; use nu_protocol::{ParseError, Span, ast::RedirectionSource, engine::StateWorkingSet}; use std::mem; #[derive(Debug, Clone, Copy)...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/known_external.rs
crates/nu-parser/src/known_external.rs
use nu_engine::command_prelude::*; use nu_protocol::{ CustomExample, ast::{self, Expr, Expression}, engine::{self, CallImpl, CommandType, UNKNOWN_SPAN_ID}, ir::{self, DataSlice}, }; #[derive(Clone)] pub struct KnownExternal { pub signature: Box<Signature>, pub attributes: Vec<(String, Value)>, ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/src/lex.rs
crates/nu-parser/src/lex.rs
use nu_protocol::{ParseError, Span}; #[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum TokenContents { Item, Comment, Pipe, PipePipe, AssignmentOperator, ErrGreaterPipe, OutErrGreaterPipe, Semicolon, OutGreaterThan, OutGreaterGreaterThan, ErrGreaterThan, ErrGreaterGr...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/tests/test_lex.rs
crates/nu-parser/tests/test_lex.rs
#![allow(clippy::byte_char_slices)] use nu_parser::{LexState, Token, TokenContents, lex, lex_n_tokens, lex_signature}; use nu_protocol::{ParseError, Span}; #[test] fn lex_basic() { let file = b"let x = 4"; let output = lex(file, 0, &[], &[], true); assert!(output.1.is_none()); } #[test] fn lex_newline(...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/tests/test_parser_unicode_escapes.rs
crates/nu-parser/tests/test_parser_unicode_escapes.rs
#![cfg(test)] use nu_parser::*; use nu_protocol::{ ast::Expr, engine::{EngineState, StateWorkingSet}, }; pub fn do_test(test: &[u8], expected: &str, error_contains: Option<&str>) { let engine_state = EngineState::new(); let mut working_set = StateWorkingSet::new(&engine_state); let block = parse(...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/tests/test_parser.rs
crates/nu-parser/tests/test_parser.rs
use nu_parser::*; use nu_protocol::{ DeclId, FilesizeUnit, ParseError, Signature, Span, SyntaxShape, Type, Unit, ast::{Argument, Expr, Expression, ExternalArgument, PathMember, Range}, engine::{Command, EngineState, Stack, StateWorkingSet}, }; use rstest::rstest; use mock::{Alias, AttrEcho, Const, Def, IfM...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/fuzz/fuzz_targets/parse.rs
crates/nu-parser/fuzz/fuzz_targets/parse.rs
#![no_main] use libfuzzer_sys::fuzz_target; use nu_parser::*; use nu_protocol::engine::{EngineState, StateWorkingSet}; fuzz_target!(|data: &[u8]| { let engine_state = EngineState::new(); let mut working_set = StateWorkingSet::new(&engine_state); let _block = parse(&mut working_set, None, &data, true); }...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-parser/fuzz/fuzz_targets/parse_with_keywords.rs
crates/nu-parser/fuzz/fuzz_targets/parse_with_keywords.rs
#![no_main] use libfuzzer_sys::fuzz_target; use nu_cmd_lang::create_default_context; use nu_parser::*; use nu_protocol::engine::StateWorkingSet; fuzz_target!(|data: &[u8]| { let engine_state = create_default_context(); let mut working_set = StateWorkingSet::new(&engine_state); let _block = parse(&mut wo...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/lib.rs
crates/nu_plugin_polars/src/lib.rs
#![allow(clippy::result_large_err)] use std::{ cmp::Ordering, panic::{AssertUnwindSafe, catch_unwind}, }; use cache::cache_commands; pub use cache::{Cache, Cacheable}; use command::{ aggregation::aggregation_commands, boolean::boolean_commands, computation::computation_commands, core::core_commands, da...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/main.rs
crates/nu_plugin_polars/src/main.rs
use nu_plugin::{MsgPackSerializer, serve_plugin}; use nu_plugin_polars::PolarsPlugin; fn main() { env_logger::init(); // Set config options via environment variable unsafe { // Extensions are required for certain things like aggregates with object dtypes to work // correctly. It is disable...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/cache/rm.rs
crates/nu_plugin_polars/src/cache/rm.rs
use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, LabeledError, PipelineData, ShellError, Signature, Span, SyntaxShape, Type, Value, }; use uuid::Uuid; use crate::PolarsPlugin; #[derive(Clone)] pub struct CacheRemove; impl PluginCommand for CacheRemove { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/cache/list.rs
crates/nu_plugin_polars/src/cache/list.rs
use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, IntoPipelineData, LabeledError, PipelineData, Signature, Value, record, }; use crate::{PolarsPlugin, values::PolarsPluginObject}; #[derive(Clone)] pub struct ListDF; impl PluginCommand for ListDF { type Plug...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/cache/mod.rs
crates/nu_plugin_polars/src/cache/mod.rs
mod get; mod list; mod rm; use std::{ collections::HashMap, sync::{Mutex, MutexGuard}, }; use chrono::{DateTime, FixedOffset, Local}; pub use list::ListDF; use nu_plugin::{EngineInterface, PluginCommand}; use nu_protocol::{LabeledError, ShellError, Span}; use uuid::Uuid; use crate::{EngineWrapper, PolarsPlug...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/cache/get.rs
crates/nu_plugin_polars/src/cache/get.rs
use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, LabeledError, PipelineData, ShellError, Signature, Span, SyntaxShape, Type, Value, }; use polars::{prelude::NamedFrom, series::Series}; use uuid::Uuid; use crate::{ PolarsPlugin, values::{CustomValueSu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/utils.rs
crates/nu_plugin_polars/src/dataframe/utils.rs
use nu_protocol::{FromValue, ShellError, Value}; pub fn extract_strings(value: Value) -> Result<Vec<String>, ShellError> { let span = value.span(); match ( <String as FromValue>::from_value(value.clone()), <Vec<String> as FromValue>::from_value(value), ) { (Ok(col), Err(_)) => Ok(ve...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/mod.rs
crates/nu_plugin_polars/src/dataframe/mod.rs
use nu_protocol::{ShellError, Span}; pub mod command; mod utils; pub mod values; pub fn missing_flag_error(flag: &str, span: Span) -> ShellError { ShellError::GenericError { error: format!("Missing flag: {flag}"), msg: "".into(), span: Some(span), help: None, inner: vec![],...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/mod.rs
crates/nu_plugin_polars/src/dataframe/command/mod.rs
pub mod aggregation; pub mod boolean; pub mod computation; pub mod core; pub mod data; pub mod datetime; pub mod index; pub mod integer; pub mod list; pub mod string; pub mod stub;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/stub.rs
crates/nu_plugin_polars/src/dataframe/command/stub.rs
use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, LabeledError, PipelineData, Signature, Type, Value}; use crate::PolarsPlugin; #[derive(Clone)] pub struct PolarsCmd; impl PluginCommand for PolarsCmd { type Plugin = PolarsPlugin; fn name(&self) -> &str { "po...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/str_replace.rs
crates/nu_plugin_polars/src/dataframe/command/string/str_replace.rs
use crate::{ PolarsPlugin, missing_flag_error, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Ca...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/to_lowercase.rs
crates/nu_plugin_polars/src/dataframe/command/string/to_lowercase.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/contains.rs
crates/nu_plugin_polars/src/dataframe/command/string/contains.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/str_join.rs
crates/nu_plugin_polars/src/dataframe/command/string/str_join.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/str_replace_all.rs
crates/nu_plugin_polars/src/dataframe/command/string/str_replace_all.rs
use crate::{ PolarsPlugin, missing_flag_error, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Ca...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/mod.rs
crates/nu_plugin_polars/src/dataframe/command/string/mod.rs
mod concat_str; mod contains; mod str_join; mod str_lengths; mod str_replace; mod str_replace_all; mod str_slice; mod str_split; mod str_strip_chars; mod to_lowercase; mod to_uppercase; use crate::PolarsPlugin; use nu_plugin::PluginCommand; pub use concat_str::ExprConcatStr; pub use contains::Contains; pub use str_jo...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/str_lengths.rs
crates/nu_plugin_polars/src/dataframe/command/string/str_lengths.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/concat_str.rs
crates/nu_plugin_polars/src/dataframe/command/string/concat_str.rs
use crate::{ PolarsPlugin, dataframe::values::{Column, NuDataFrame, NuExpression}, values::{CustomValueSupport, PolarsPluginType}, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, LabeledError, PipelineData, Signature, Span, SyntaxShape, Type, Valu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/str_slice.rs
crates/nu_plugin_polars/src/dataframe/command/string/str_slice.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/str_split.rs
crates/nu_plugin_polars/src/dataframe/command/string/str_split.rs
use crate::{ PolarsPlugin, values::{CustomValueSupport, NuDataFrame, NuExpression, PolarsPluginType}, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, LabeledError, PipelineData, Signature, Span, Spanned, SyntaxShape, Value, }; use polars::df; #[deri...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/str_strip_chars.rs
crates/nu_plugin_polars/src/dataframe/command/string/str_strip_chars.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/string/to_uppercase.rs
crates/nu_plugin_polars/src/dataframe/command/string/to_uppercase.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_ordinal.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_ordinal.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/strftime.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/strftime.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::{Column, NuDataFrame}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, Lab...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_minute.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_minute.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/as_date.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/as_date.rs
use crate::{ PolarsPlugin, values::{ Column, CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, NuSchema, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use chrono::DateTime; use std::sync::Arc; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_p...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_week.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_week.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/as_datetime.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/as_datetime.rs
use crate::{ PolarsPlugin, command::datetime::timezone_from_str, dataframe::values::str_to_time_unit, values::{ Column, CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, NuSchema, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use chrono::DateTime; use polars...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_nanosecond.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_nanosecond.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/datepart.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/datepart.rs
use crate::values::{NuExpression, PolarsPluginType}; use std::sync::Arc; use crate::{ PolarsPlugin, dataframe::values::{Column, NuDataFrame, NuSchema}, values::CustomValueSupport, }; use chrono::{DateTime, FixedOffset}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_day.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_day.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/convert_time_zone.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/convert_time_zone.rs
use crate::values::{Column, NuDataFrame, NuSchema}; use crate::{ PolarsPlugin, dataframe::values::NuExpression, values::{CustomValueSupport, PolarsPluginObject, PolarsPluginType, cant_convert_err}, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_year.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_year.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/mod.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/mod.rs
mod as_date; mod as_datetime; mod convert_time_zone; mod datepart; mod get_day; mod get_hour; mod get_minute; mod get_month; mod get_nanosecond; mod get_ordinal; mod get_second; mod get_week; mod get_weekday; mod get_year; mod replace_time_zone; mod strftime; mod truncate; use crate::PolarsPlugin; use nu_plugin::Plugi...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/replace_time_zone.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/replace_time_zone.rs
use crate::values::{Column, NuDataFrame, NuSchema}; use crate::{ PolarsPlugin, dataframe::values::NuExpression, values::{CustomValueSupport, PolarsPluginObject, PolarsPluginType, cant_convert_err}, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_second.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_second.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/truncate.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/truncate.rs
use crate::{ PolarsPlugin, values::{ Column, CustomValueSupport, NuDataFrame, NuExpression, NuSchema, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use std::sync::Arc; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, L...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_hour.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_hour.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use super::super::super::values::NuDataFrame; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Exampl...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_month.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_month.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/datetime/get_weekday.rs
crates/nu_plugin_polars/src/dataframe/command/datetime/get_weekday.rs
use crate::{ PolarsPlugin, values::{ CustomValueSupport, NuDataFrame, NuExpression, NuLazyFrame, PolarsPluginObject, PolarsPluginType, cant_convert_err, }, }; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{Category, Example, LabeledError, PipelineData, She...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu_plugin_polars/src/dataframe/command/index/arg_min.rs
crates/nu_plugin_polars/src/dataframe/command/index/arg_min.rs
use crate::{PolarsPlugin, values::CustomValueSupport}; use crate::values::{Column, NuDataFrame, PolarsPluginType}; use nu_plugin::{EngineInterface, EvaluatedCall, PluginCommand}; use nu_protocol::{ Category, Example, LabeledError, PipelineData, ShellError, Signature, Span, Value, }; use polars::prelude::{ArgAgg, ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false