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/strings/parse.rs
crates/nu-command/src/strings/parse.rs
use fancy_regex::{Captures, Regex, RegexBuilder}; use nu_engine::command_prelude::*; use nu_protocol::{ListStream, Signals, engine::StateWorkingSet}; use std::collections::VecDeque; #[derive(Clone)] pub struct Parse; impl Command for Parse { fn name(&self) -> &str { "parse" } fn 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/strings/mod.rs
crates/nu-command/src/strings/mod.rs
mod ansi; mod base; mod char_; mod detect; mod detect_columns; mod detect_type; mod encode_decode; mod format; mod guess_width; mod parse; mod split; mod str_; pub use ansi::{Ansi, AnsiLink, AnsiStrip}; pub use base::{ DecodeBase32, DecodeBase32Hex, DecodeBase64, DecodeHex, EncodeBase32, EncodeBase32Hex, Encod...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/guess_width.rs
crates/nu-command/src/strings/guess_width.rs
/// Attribution: https://github.com/noborus/guesswidth/blob/main/guesswidth.go /// The MIT License (MIT) as of 2024-03-22 /// /// GuessWidth handles the format as formatted by printf. /// Spaces exist as delimiters, but spaces are not always delimiters. /// The width seems to be a fixed length, but it doesn't always fi...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/char_.rs
crates/nu-command/src/strings/char_.rs
use indexmap::{IndexMap, indexmap}; use nu_engine::command_prelude::*; use nu_protocol::Signals; use std::collections::HashSet; use std::sync::LazyLock; // Character used to separate directories in a Path Environment variable on windows is ";" #[cfg(target_family = "windows")] const ENV_PATH_SEPARATOR_CHAR: char = ';...
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_type.rs
crates/nu-command/src/strings/detect_type.rs
use crate::parse_date_from_string; use chrono::{Local, TimeZone, Utc}; use fancy_regex::{Regex, RegexBuilder}; use nu_engine::command_prelude::*; use std::sync::LazyLock; #[derive(Clone)] pub struct DetectType; impl Command for DetectType { fn name(&self) -> &str { "detect type" } fn signature(&s...
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_columns.rs
crates/nu-command/src/strings/detect_columns.rs
use itertools::Itertools; use nu_engine::command_prelude::*; use nu_protocol::{Config, Range}; use std::{io::Cursor, iter::Peekable, str::CharIndices, sync::Arc}; type Input<'t> = Peekable<CharIndices<'t>>; #[derive(Clone)] pub struct DetectColumns; impl Command for DetectColumns { fn name(&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/strings/str_/expand.rs
crates/nu-command/src/strings/str_/expand.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct StrExpand; impl Command for StrExpand { fn name(&self) -> &str { "str expand" } fn description(&self) -> &str { "Generates all possible combinations defined in brace expansion syntax." } 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/strings/str_/starts_with.rs
crates/nu-command/src/strings/str_/starts_with.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_utils::IgnoreCaseExt; struct Arguments { substring: String, cell_paths: Option<Vec<CellPath>>, case_insensitive: bool, } impl CmdArgument for Arguments { fn take_cell_paths(&mut self) -> Option<Vec<CellP...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/distance.rs
crates/nu-command/src/strings/str_/distance.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_protocol::{engine::StateWorkingSet, levenshtein_distance}; #[derive(Clone)] pub struct StrDistance; struct Arguments { compare_string: String, cell_paths: Option<Vec<CellPath>>, } 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/strings/str_/reverse.rs
crates/nu-command/src/strings/str_/reverse.rs
use nu_cmd_base::input_handler::{CellPathOnlyArgs, operate}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct StrReverse; impl Command for StrReverse { fn name(&self) -> &str { "str reverse" } fn signature(&self) -> Signature { Signature::build("str reverse") .in...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/stats.rs
crates/nu-command/src/strings/str_/stats.rs
use fancy_regex::Regex; use nu_engine::command_prelude::*; use std::collections::BTreeMap; use std::{fmt, str}; use unicode_segmentation::UnicodeSegmentation; // borrowed liberally from here https://github.com/dead10ck/uwc pub type Counted = BTreeMap<Counter, usize>; #[derive(Clone)] pub struct StrStats; impl Comma...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/index_of.rs
crates/nu-command/src/strings/str_/index_of.rs
use std::ops::Bound; use crate::{grapheme_flags, grapheme_flags_const}; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_protocol::{IntRange, engine::StateWorkingSet}; use unicode_segmentation::UnicodeSegmentation; struct Arguments { end: bool, substring: Strin...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/contains.rs
crates/nu-command/src/strings/str_/contains.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_utils::IgnoreCaseExt; #[derive(Clone)] pub struct StrContains; struct Arguments { substring: String, cell_paths: Option<Vec<CellPath>>, case_insensitive: bool, } impl CmdArgument for Arguments { fn take...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/substring.rs
crates/nu-command/src/strings/str_/substring.rs
use std::ops::Bound; use crate::{grapheme_flags, grapheme_flags_const}; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_protocol::{IntRange, engine::StateWorkingSet}; use unicode_segmentation::UnicodeSegmentation; #[derive(Clone)] pub struct StrSubstring; struct Argu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/replace.rs
crates/nu-command/src/strings/str_/replace.rs
use fancy_regex::{Captures, NoExpand, Regex}; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::{ClosureEval, command_prelude::*}; use std::sync::Arc; enum ReplacementValue { String(Arc<Spanned<String>>), Closure(Box<Spanned<ClosureEval>>), } struct Arguments { all: bool, find: Sp...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/mod.rs
crates/nu-command/src/strings/str_/mod.rs
mod case; mod contains; mod distance; mod ends_with; mod expand; mod index_of; mod join; mod length; mod replace; mod reverse; mod starts_with; mod stats; mod substring; mod trim; pub use case::*; pub use contains::StrContains; pub use distance::StrDistance; pub use ends_with::StrEndswith; pub use expand::StrExpand; p...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/join.rs
crates/nu-command/src/strings/str_/join.rs
use chrono::Datelike; use nu_engine::command_prelude::*; use nu_protocol::{Signals, shell_error::io::IoError}; use std::io::Write; #[derive(Clone)] pub struct StrJoin; impl Command for StrJoin { fn name(&self) -> &str { "str join" } fn signature(&self) -> Signature { Signature::build("st...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/ends_with.rs
crates/nu-command/src/strings/str_/ends_with.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_utils::IgnoreCaseExt; struct Arguments { substring: String, cell_paths: Option<Vec<CellPath>>, case_insensitive: bool, } impl CmdArgument for Arguments { fn take_cell_paths(&mut self) -> Option<Vec<CellP...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/length.rs
crates/nu-command/src/strings/str_/length.rs
use crate::{grapheme_flags, grapheme_flags_const}; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use unicode_segmentation::UnicodeSegmentation; struct Arguments { cell_paths: Option<Vec<CellPath>>, graphemes: bool, chars: 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/strings/str_/case/upcase.rs
crates/nu-command/src/strings/str_/case/upcase.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct StrUpcase; impl Command for StrUpcase { fn name(&self) -> &str { "str upcase" } fn signature(&self) -> Signature { Signature::build("str upcase") .input_output_types(vec![ (Type::String, Type::Strin...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/case/capitalize.rs
crates/nu-command/src/strings/str_/case/capitalize.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct StrCapitalize; impl Command for StrCapitalize { fn name(&self) -> &str { "str capitalize" } fn signature(&self) -> Signature { Signature::build("str capitalize") .input_output_types(vec![ (Type::Str...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/case/mod.rs
crates/nu-command/src/strings/str_/case/mod.rs
mod capitalize; mod downcase; mod str_; mod upcase; pub use capitalize::StrCapitalize; pub use downcase::StrDowncase; pub use str_::Str; pub use upcase::StrUpcase; use nu_cmd_base::input_handler::{CmdArgument, operate as general_operate}; use nu_engine::command_prelude::*; struct Arguments<F: Fn(&str) -> String + Se...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/case/downcase.rs
crates/nu-command/src/strings/str_/case/downcase.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct StrDowncase; impl Command for StrDowncase { fn name(&self) -> &str { "str downcase" } fn signature(&self) -> Signature { Signature::build("str downcase") .input_output_types(vec![ (Type::String, Typ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/case/str_.rs
crates/nu-command/src/strings/str_/case/str_.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Str; impl Command for Str { fn name(&self) -> &str { "str" } fn signature(&self) -> Signature { Signature::build("str") .category(Category::Strings) .input_output_types(vec![(Type::Noth...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/trim/trim_.rs
crates/nu-command/src/strings/str_/trim/trim_.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct StrTrim; struct Arguments { to_trim: Option<char>, trim_side: TrimSide, cell_paths: Option<Vec<CellPath>>, mode: ActionMode, } impl CmdArgument for Arguments { fn take_cell_paths...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/str_/trim/mod.rs
crates/nu-command/src/strings/str_/trim/mod.rs
mod trim_; pub use trim_::StrTrim;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/base/base32hex.rs
crates/nu-command/src/strings/base/base32hex.rs
use nu_engine::command_prelude::*; const EXTRA_USAGE: &str = r"This command uses an alternative Base32 alphabet, defined in RFC 4648, section 7. Note this command will collect stream input."; #[derive(Clone)] pub struct DecodeBase32Hex; impl Command for DecodeBase32Hex { fn name(&self) -> &str { "decode...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/base/base64.rs
crates/nu-command/src/strings/base/base64.rs
use data_encoding::Encoding; use nu_engine::command_prelude::*; const EXTRA_USAGE: &str = r"The default alphabet is taken from RFC 4648, section 4. A URL-safe version is available. Note this command will collect stream input."; fn get_encoding_from_flags(url: bool, nopad: bool) -> Encoding { match (url, nopad)...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/base/hex.rs
crates/nu-command/src/strings/base/hex.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct DecodeHex; impl Command for DecodeHex { fn name(&self) -> &str { "decode hex" } fn signature(&self) -> Signature { Signature::build("decode hex") .input_output_types(vec![(Type::String, Type::Binary)]) ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/base/mod.rs
crates/nu-command/src/strings/base/mod.rs
#![allow(unused)] use data_encoding::Encoding; use nu_engine::command_prelude::*; mod base32; mod base32hex; mod base64; mod hex; pub use base32::{DecodeBase32, EncodeBase32}; pub use base32hex::{DecodeBase32Hex, EncodeBase32Hex}; pub use base64::{DecodeBase64, EncodeBase64}; pub use hex::{DecodeHex, EncodeHex}; p...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/base/base32.rs
crates/nu-command/src/strings/base/base32.rs
use data_encoding::Encoding; use nu_engine::command_prelude::*; const EXTRA_USAGE: &str = r"The default alphabet is taken from RFC 4648, section 6. Note this command will collect stream input."; #[derive(Clone)] pub struct DecodeBase32; impl Command for DecodeBase32 { fn name(&self) -> &str { "decode b...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/encode_decode/encode.rs
crates/nu-command/src/strings/encode_decode/encode.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct Encode; impl Command for Encode { fn name(&self) -> &str { "encode" } fn description(&self) -> &str { // Note: "Encode a UTF-8 string into other forms" is semantically incorrect because // Nushell strings, as abstract ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/encode_decode/decode.rs
crates/nu-command/src/strings/encode_decode/decode.rs
use nu_engine::command_prelude::*; use oem_cp::decode_string_complete_table; use std::collections::HashMap; use std::sync::LazyLock; // create a lazycell of all the code_table "Complete" code pages // the commented out code pages are "Incomplete", which means they // are stored as Option<char> and not &[char; 128] sta...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/encode_decode/mod.rs
crates/nu-command/src/strings/encode_decode/mod.rs
mod decode; mod encode; mod encoding; pub use self::decode::Decode; pub use self::encode::Encode;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/encode_decode/encoding.rs
crates/nu-command/src/strings/encode_decode/encoding.rs
use chardetng::EncodingDetector; use encoding_rs::Encoding; use nu_protocol::{ShellError, Span, Spanned, Value}; pub fn detect_encoding_name( head: Span, input: Span, bytes: &[u8], ) -> Result<&'static Encoding, ShellError> { let mut detector = EncodingDetector::new(); let _non_ascii = detector.fee...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/split/words.rs
crates/nu-command/src/strings/split/words.rs
use crate::{grapheme_flags, grapheme_flags_const}; use fancy_regex::Regex; use nu_engine::command_prelude::*; use unicode_segmentation::UnicodeSegmentation; #[derive(Clone)] pub struct SplitWords; impl Command for SplitWords { fn name(&self) -> &str { "split words" } 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/strings/split/command.rs
crates/nu-command/src/strings/split/command.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Split; impl Command for Split { fn name(&self) -> &str { "split" } fn signature(&self) -> Signature { Signature::build("split") .category(Category::Strings) .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/strings/split/column.rs
crates/nu-command/src/strings/split/column.rs
use fancy_regex::{Regex, escape}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct SplitColumn; impl Command for SplitColumn { fn name(&self) -> &str { "split column" } fn signature(&self) -> Signature { Signature::build("split column") .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/strings/split/list.rs
crates/nu-command/src/strings/split/list.rs
use fancy_regex::Regex; use nu_engine::{ClosureEval, command_prelude::*}; use nu_protocol::{FromValue, Signals}; #[derive(Clone)] pub struct SubCommand; impl Command for SubCommand { fn name(&self) -> &str { "split list" } fn signature(&self) -> Signature { Signature::build("split list") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/split/row.rs
crates/nu-command/src/strings/split/row.rs
use fancy_regex::{Regex, escape}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct SplitRow; impl Command for SplitRow { fn name(&self) -> &str { "split row" } fn signature(&self) -> Signature { Signature::build("split row") .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/strings/split/chars.rs
crates/nu-command/src/strings/split/chars.rs
use crate::{grapheme_flags, grapheme_flags_const}; use nu_engine::command_prelude::*; use unicode_segmentation::UnicodeSegmentation; #[derive(Clone)] pub struct SplitChars; impl Command for SplitChars { fn name(&self) -> &str { "split chars" } 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/strings/split/mod.rs
crates/nu-command/src/strings/split/mod.rs
mod chars; mod column; mod command; mod list; mod row; mod words; pub use chars::SplitChars; pub use column::SplitColumn; pub use command::Split; pub use list::SubCommand as SplitList; pub use row::SplitRow; pub use words::SplitWords;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/ansi/ansi_.rs
crates/nu-command/src/strings/ansi/ansi_.rs
use nu_ansi_term::*; use nu_engine::command_prelude::*; use nu_protocol::{Signals, engine::StateWorkingSet}; use std::collections::HashMap; use std::sync::LazyLock; #[derive(Clone)] pub struct Ansi; struct AnsiCode { short_name: Option<&'static str>, long_name: &'static str, code: String, } #[rustfmt::sk...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/ansi/link.rs
crates/nu-command/src/strings/ansi/link.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct AnsiLink; impl Command for AnsiLink { fn name(&self) -> &str { "ansi link" } fn signature(&self) -> Signature { Signature::build("ansi link") .input_output_types(vec![ (Type::String, 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/strings/ansi/strip.rs
crates/nu-command/src/strings/ansi/strip.rs
use std::sync::Arc; use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_protocol::Config; struct Arguments { cell_paths: Option<Vec<CellPath>>, config: Arc<Config>, } impl CmdArgument for Arguments { fn take_cell_paths(&mut self) -> Option<Vec<CellPath>> { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/ansi/mod.rs
crates/nu-command/src/strings/ansi/mod.rs
mod ansi_; mod link; mod strip; pub use ansi_::Ansi; pub use link::AnsiLink; pub use strip::AnsiStrip;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/format/format_.rs
crates/nu-command/src/strings/format/format_.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct Format; impl Command for Format { fn name(&self) -> &str { "format" } fn signature(&self) -> Signature { Signature::build("format") .category(Category::Strings) .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/strings/format/filesize.rs
crates/nu-command/src/strings/format/filesize.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_protocol::{ FilesizeFormatter, FilesizeUnit, SUPPORTED_FILESIZE_UNITS, engine::StateWorkingSet, }; struct Arguments { unit: FilesizeUnit, cell_paths: Option<Vec<CellPath>>, } 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/strings/format/date.rs
crates/nu-command/src/strings/format/date.rs
use crate::{generate_strftime_list, parse_date_from_string}; use chrono::{DateTime, Datelike, Locale, TimeZone}; use nu_engine::command_prelude::*; use nu_utils::locale::{LOCALE_OVERRIDE_ENV_VAR, get_system_locale_string}; use std::fmt::{Display, Write}; #[derive(Clone)] pub struct FormatDate; impl Command for Forma...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/format/mod.rs
crates/nu-command/src/strings/format/mod.rs
mod date; mod duration; mod filesize; mod format_; pub use date::FormatDate; pub use duration::FormatDuration; pub use filesize::FormatFilesize; pub use format_::Format;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/strings/format/duration.rs
crates/nu-command/src/strings/format/duration.rs
use nu_cmd_base::input_handler::{CmdArgument, operate}; use nu_engine::command_prelude::*; use nu_protocol::SUPPORTED_DURATION_UNITS; struct Arguments { format_value: Spanned<String>, float_precision: usize, cell_paths: Option<Vec<CellPath>>, } impl CmdArgument for Arguments { fn take_cell_paths(&mut ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/generators/seq_char.rs
crates/nu-command/src/generators/seq_char.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct SeqChar; impl Command for SeqChar { fn name(&self) -> &str { "seq char" } fn description(&self) -> &str { "Print a sequence of ASCII characters." } fn signature(&self) -> Signature { Signature::build("seq char...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/generators/cal.rs
crates/nu-command/src/generators/cal.rs
use chrono::{Datelike, Local, NaiveDate}; use nu_color_config::StyleComputer; use nu_engine::command_prelude::*; use nu_protocol::ast::{self, Expr, Expression}; use std::collections::VecDeque; static DAYS_OF_THE_WEEK: [&str; 7] = ["su", "mo", "tu", "we", "th", "fr", "sa"]; #[derive(Clone)] pub struct Cal; struct Ar...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/generators/mod.rs
crates/nu-command/src/generators/mod.rs
mod cal; mod generate; mod seq; mod seq_char; mod seq_date; pub use cal::Cal; pub use generate::Generate; pub use seq::Seq; pub use seq_char::SeqChar; pub use seq_date::SeqDate;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/generators/seq.rs
crates/nu-command/src/generators/seq.rs
use nu_engine::command_prelude::*; use nu_protocol::ListStream; #[derive(Clone)] pub struct Seq; impl Command for Seq { fn name(&self) -> &str { "seq" } fn signature(&self) -> Signature { Signature::build("seq") .input_output_types(vec![(Type::Nothing, Type::List(Box::new(Type...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/generators/generate.rs
crates/nu-command/src/generators/generate.rs
use nu_engine::{ClosureEval, command_prelude::*}; use nu_protocol::engine::Closure; #[derive(Clone)] pub struct Generate; impl Command for Generate { fn name(&self) -> &str { "generate" } fn signature(&self) -> Signature { Signature::build("generate") .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/generators/seq_date.rs
crates/nu-command/src/generators/seq_date.rs
use chrono::{Duration, Local, NaiveDate, NaiveDateTime}; use nu_engine::command_prelude::*; use nu_protocol::FromValue; use std::fmt::Write; const NANOSECONDS_IN_DAY: i64 = 1_000_000_000i64 * 60i64 * 60i64 * 24i64; #[derive(Clone)] pub struct SeqDate; impl Command for SeqDate { fn name(&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/filesystem/open.rs
crates/nu-command/src/filesystem/open.rs
#[allow(deprecated)] use nu_engine::{command_prelude::*, current_dir, eval_call}; use nu_path::is_windows_device_path; use nu_protocol::{ DataSource, NuGlob, PipelineMetadata, ast, debugger::{WithDebug, WithoutDebug}, shell_error::{self, io::IoError}, }; use std::{ collections::HashMap, path::{Path,...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/ls.rs
crates/nu-command/src/filesystem/ls.rs
use crate::{DirBuilder, DirInfo}; use chrono::{DateTime, Local, LocalResult, TimeZone, Utc}; use nu_engine::glob_from; #[allow(deprecated)] use nu_engine::{command_prelude::*, env::current_dir}; use nu_glob::MatchOptions; use nu_path::{expand_path_with, expand_to_real_path}; use nu_protocol::{ DataSource, NuGlob, P...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/utouch.rs
crates/nu-command/src/filesystem/utouch.rs
use chrono::{DateTime, FixedOffset}; use filetime::FileTime; use nu_engine::command_prelude::*; use nu_glob::{glob, is_glob}; use nu_path::expand_path_with; use nu_protocol::{NuGlob, shell_error::io::IoError}; use std::path::PathBuf; use uu_touch::{ChangeTimes, InputFile, Options, Source, error::TouchError}; use uucore...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/cd.rs
crates/nu-command/src/filesystem/cd.rs
use std::path::PathBuf; use nu_engine::command_prelude::*; use nu_protocol::shell_error::{self, io::IoError}; use nu_utils::filesystem::{PermissionResult, have_permission}; #[derive(Clone)] pub struct Cd; impl Command for Cd { fn name(&self) -> &str { "cd" } 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/filesystem/rm.rs
crates/nu-command/src/filesystem/rm.rs
use super::util::try_interaction; #[allow(deprecated)] use nu_engine::{command_prelude::*, env::current_dir}; use nu_glob::MatchOptions; use nu_path::expand_path_with; use nu_protocol::{ NuGlob, report_shell_error, shell_error::{self, io::IoError}, }; #[cfg(unix)] use std::os::unix::prelude::FileTypeExt; use st...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/ucp.rs
crates/nu-command/src/filesystem/ucp.rs
#[allow(deprecated)] use nu_engine::{command_prelude::*, current_dir}; use nu_glob::MatchOptions; use nu_protocol::{ NuGlob, shell_error::{self, io::IoError}, }; use std::path::PathBuf; use uu_cp::{BackupMode, CopyMode, CpError, UpdateMode}; use uucore::{localized_help_template, translate}; // TODO: related to...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/glob.rs
crates/nu-command/src/filesystem/glob.rs
use nu_engine::command_prelude::*; use nu_protocol::{ListStream, Signals}; use wax::{Glob as WaxGlob, WalkBehavior, WalkEntry}; #[derive(Clone)] pub struct Glob; impl Command for Glob { fn name(&self) -> &str { "glob" } fn signature(&self) -> Signature { Signature::build("glob") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/umkdir.rs
crates/nu-command/src/filesystem/umkdir.rs
#[allow(deprecated)] use nu_engine::{command_prelude::*, current_dir}; use nu_protocol::NuGlob; use uu_mkdir::mkdir; #[cfg(not(windows))] use uucore::mode; use uucore::{localized_help_template, translate}; #[derive(Clone)] pub struct UMkdir; const IS_RECURSIVE: bool = true; const DEFAULT_MODE: u32 = 0o777; #[cfg(not...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/util.rs
crates/nu-command/src/filesystem/util.rs
use dialoguer::Input; use std::error::Error; pub fn try_interaction( interactive: bool, prompt: String, ) -> (Result<Option<bool>, Box<dyn Error>>, bool) { let interaction = if interactive { match get_interactive_confirmation(prompt) { Ok(i) => Ok(Some(i)), Err(e) => Err(e),...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/watch.rs
crates/nu-command/src/filesystem/watch.rs
use itertools::{Either, Itertools}; use notify_debouncer_full::{ DebouncedEvent, Debouncer, FileIdMap, new_debouncer, notify::{ self, EventKind, RecommendedWatcher, RecursiveMode, Watcher, event::{DataChange, ModifyKind, RenameMode}, }, }; use nu_engine::{ClosureEval, command_prelude::*}; us...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/umv.rs
crates/nu-command/src/filesystem/umv.rs
#[allow(deprecated)] use nu_engine::{command_prelude::*, current_dir}; use nu_glob::MatchOptions; use nu_path::expand_path_with; use nu_protocol::{ NuGlob, shell_error::{self, io::IoError}, }; use std::{ffi::OsString, path::PathBuf}; use uu_mv::{BackupMode, UpdateMode}; use uucore::{localized_help_template, tra...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/mod.rs
crates/nu-command/src/filesystem/mod.rs
mod cd; mod du; mod glob; mod ls; mod mktemp; mod open; mod rm; mod save; mod start; mod ucp; mod umkdir; mod umv; mod util; mod utouch; mod watch; pub use self::open::Open; pub use cd::Cd; pub use du::Du; pub use glob::Glob; pub use ls::Ls; pub use mktemp::Mktemp; pub use rm::Rm; pub use save::Save; pub use start::St...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/save.rs
crates/nu-command/src/filesystem/save.rs
use crate::progress_bar; use nu_engine::get_eval_block; #[allow(deprecated)] use nu_engine::{command_prelude::*, current_dir}; use nu_path::{expand_path_with, is_windows_device_path}; use nu_protocol::{ ByteStreamSource, DataSource, OutDest, PipelineMetadata, Signals, ast, byte_stream::copy_with_signals, proces...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/du.rs
crates/nu-command/src/filesystem/du.rs
use crate::{DirBuilder, DirInfo, FileInfo}; #[allow(deprecated)] use nu_engine::{command_prelude::*, current_dir}; use nu_glob::{MatchOptions, Pattern}; use nu_protocol::{NuGlob, Signals}; use serde::Deserialize; use std::path::Path; #[derive(Clone)] pub struct Du; #[derive(Deserialize, Clone, Debug)] pub struct DuAr...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/filesystem/start.rs
crates/nu-command/src/filesystem/start.rs
use itertools::Itertools; use nu_engine::{command_prelude::*, env_to_strings}; use nu_protocol::ShellError; use std::{ ffi::{OsStr, OsString}, process::Stdio, }; #[derive(Clone)] pub struct Start; impl Command for Start { fn name(&self) -> &str { "start" } 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/filesystem/mktemp.rs
crates/nu-command/src/filesystem/mktemp.rs
#[allow(deprecated)] use nu_engine::{command_prelude::*, env::current_dir}; use std::path::PathBuf; use uucore::{localized_help_template, translate}; #[derive(Clone)] pub struct Mktemp; impl Command for Mktemp { fn name(&self) -> &str { "mktemp" } fn description(&self) -> &str { "Create t...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/nu_xml_format.rs
crates/nu-command/src/formats/nu_xml_format.rs
pub const COLUMN_TAG_NAME: &str = "tag"; pub const COLUMN_ATTRS_NAME: &str = "attributes"; pub const COLUMN_CONTENT_NAME: &str = "content";
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/mod.rs
crates/nu-command/src/formats/mod.rs
mod from; mod nu_xml_format; mod to; pub use from::*; pub use to::*;
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/xlsx.rs
crates/nu-command/src/formats/from/xlsx.rs
use calamine::*; use chrono::{Local, LocalResult, Offset, TimeZone, Utc}; use indexmap::IndexMap; use nu_engine::command_prelude::*; use std::io::Cursor; #[derive(Clone)] pub struct FromXlsx; impl Command for FromXlsx { fn name(&self) -> &str { "from xlsx" } 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/formats/from/nuon.rs
crates/nu-command/src/formats/from/nuon.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct FromNuon; impl Command for FromNuon { fn name(&self) -> &str { "from nuon" } fn description(&self) -> &str { "Convert from nuon to structured data." } fn signature(&self) -> nu_protocol::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/formats/from/msgpack.rs
crates/nu-command/src/formats/from/msgpack.rs
// Credit to https://github.com/hulthe/nu_plugin_msgpack for the original idea, though the // implementation here is unique. use std::{ error::Error, io::{self, Cursor, ErrorKind}, string::FromUtf8Error, }; use byteorder::{BigEndian, ReadBytesExt}; use chrono::{TimeZone, Utc}; use nu_engine::command_prelu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/command.rs
crates/nu-command/src/formats/from/command.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct From; impl Command for From { fn name(&self) -> &str { "from" } fn description(&self) -> &str { "Parse a string or binary data into structured data." } fn signature(&self) -> nu_protocol::Signature { ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/ods.rs
crates/nu-command/src/formats/from/ods.rs
use calamine::*; use indexmap::IndexMap; use nu_engine::command_prelude::*; use std::io::Cursor; #[derive(Clone)] pub struct FromOds; impl Command for FromOds { fn name(&self) -> &str { "from ods" } fn signature(&self) -> Signature { Signature::build("from ods") .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/formats/from/json.rs
crates/nu-command/src/formats/from/json.rs
use std::io::{BufRead, Cursor}; use nu_engine::command_prelude::*; use nu_protocol::{ListStream, Signals, shell_error::io::IoError}; #[derive(Clone)] pub struct FromJson; impl Command for FromJson { fn name(&self) -> &str { "from json" } fn description(&self) -> &str { "Convert from json...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/xml.rs
crates/nu-command/src/formats/from/xml.rs
use crate::formats::nu_xml_format::{COLUMN_ATTRS_NAME, COLUMN_CONTENT_NAME, COLUMN_TAG_NAME}; use indexmap::IndexMap; use nu_engine::command_prelude::*; use roxmltree::{NodeType, ParsingOptions, TextPos}; #[derive(Clone)] pub struct FromXml; impl Command for FromXml { fn name(&self) -> &str { "from xml" ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/msgpackz.rs
crates/nu-command/src/formats/from/msgpackz.rs
use std::io::Cursor; use nu_engine::command_prelude::*; use super::msgpack::{Opts, read_msgpack}; const BUFFER_SIZE: usize = 65536; #[derive(Clone)] pub struct FromMsgpackz; impl Command for FromMsgpackz { fn name(&self) -> &str { "from msgpackz" } fn signature(&self) -> Signature { Si...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/tsv.rs
crates/nu-command/src/formats/from/tsv.rs
use super::delimited::{DelimitedReaderConfig, from_delimited_data, trim_from_str}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct FromTsv; impl Command for FromTsv { fn name(&self) -> &str { "from tsv" } fn signature(&self) -> Signature { Signature::build("from tsv") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/mod.rs
crates/nu-command/src/formats/from/mod.rs
mod command; mod csv; mod delimited; mod json; mod msgpack; mod msgpackz; mod nuon; mod ods; mod ssv; mod toml; mod tsv; mod xlsx; mod xml; mod yaml; pub use self::csv::FromCsv; pub use self::toml::FromToml; pub use command::From; pub use json::FromJson; pub use msgpack::FromMsgpack; pub use msgpackz::FromMsgpackz; pu...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/yaml.rs
crates/nu-command/src/formats/from/yaml.rs
use indexmap::IndexMap; use itertools::Itertools; use nu_engine::command_prelude::*; use serde::de::Deserialize; #[derive(Clone)] pub struct FromYaml; impl Command for FromYaml { fn name(&self) -> &str { "from yaml" } fn signature(&self) -> Signature { Signature::build("from yaml") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/csv.rs
crates/nu-command/src/formats/from/csv.rs
use super::delimited::{DelimitedReaderConfig, from_delimited_data, trim_from_str}; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct FromCsv; impl Command for FromCsv { fn name(&self) -> &str { "from csv" } fn signature(&self) -> Signature { Signature::build("from csv") ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/ssv.rs
crates/nu-command/src/formats/from/ssv.rs
use indexmap::IndexMap; use nu_engine::command_prelude::*; #[derive(Clone)] pub struct FromSsv; const DEFAULT_MINIMUM_SPACES: usize = 2; impl Command for FromSsv { fn name(&self) -> &str { "from ssv" } fn signature(&self) -> Signature { Signature::build("from ssv") .input_out...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/delimited.rs
crates/nu-command/src/formats/from/delimited.rs
use csv::{ReaderBuilder, Trim}; use nu_protocol::{ByteStream, ListStream, PipelineData, ShellError, Signals, Span, Value}; fn from_csv_error(err: csv::Error, span: Span) -> ShellError { ShellError::DelimiterError { msg: err.to_string(), span, } } fn from_delimited_stream( DelimitedReaderCo...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/from/toml.rs
crates/nu-command/src/formats/from/toml.rs
use nu_engine::command_prelude::*; use toml::value::{Datetime, Offset}; #[derive(Clone)] pub struct FromToml; impl Command for FromToml { fn name(&self) -> &str { "from toml" } fn signature(&self) -> Signature { Signature::build("from toml") .input_output_types(vec![(Type::Str...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/nuon.rs
crates/nu-command/src/formats/to/nuon.rs
use nu_engine::command_prelude::*; #[derive(Clone)] pub struct ToNuon; impl Command for ToNuon { fn name(&self) -> &str { "to nuon" } fn signature(&self) -> Signature { Signature::build("to nuon") .input_output_types(vec![(Type::Any, Type::String)]) .switch( ...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/msgpack.rs
crates/nu-command/src/formats/to/msgpack.rs
// Credit to https://github.com/hulthe/nu_plugin_msgpack for the original idea, though the // implementation here is unique. use std::io; use byteorder::{BigEndian, WriteBytesExt}; use nu_engine::command_prelude::*; use nu_protocol::{Signals, Spanned, ast::PathMember, shell_error::io::IoError}; use rmp::encode as mp;...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/command.rs
crates/nu-command/src/formats/to/command.rs
use nu_engine::{command_prelude::*, get_full_help}; #[derive(Clone)] pub struct To; impl Command for To { fn name(&self) -> &str { "to" } fn description(&self) -> &str { "Translate structured data to a format." } fn signature(&self) -> nu_protocol::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/formats/to/md.rs
crates/nu-command/src/formats/to/md.rs
use indexmap::IndexMap; use nu_cmd_base::formats::to::delimited::merge_descriptors; use nu_engine::command_prelude::*; use nu_protocol::{Config, ast::PathMember}; use std::collections::HashSet; #[derive(Clone)] pub struct ToMd; /// Defines how lists should be formatted in Markdown output #[derive(Clone, Copy, Default...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
true
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/json.rs
crates/nu-command/src/formats/to/json.rs
use nu_engine::command_prelude::*; use nu_protocol::{PipelineMetadata, ast::PathMember}; #[derive(Clone)] pub struct ToJson; impl Command for ToJson { fn name(&self) -> &str { "to json" } fn signature(&self) -> Signature { Signature::build("to json") .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/formats/to/xml.rs
crates/nu-command/src/formats/to/xml.rs
use crate::formats::nu_xml_format::{COLUMN_ATTRS_NAME, COLUMN_CONTENT_NAME, COLUMN_TAG_NAME}; use indexmap::IndexMap; use nu_engine::command_prelude::*; use quick_xml::{ escape, events::{BytesEnd, BytesPI, BytesStart, BytesText, Event}, }; use std::{borrow::Cow, io::Cursor}; #[derive(Clone)] pub struct ToXml;...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/text.rs
crates/nu-command/src/formats/to/text.rs
use chrono::Datelike; use chrono_humanize::HumanTime; use nu_engine::command_prelude::*; use nu_protocol::{ByteStream, PipelineMetadata, format_duration, shell_error::io::IoError}; use nu_utils::ObviousFloat; use std::io::Write; const LINE_ENDING: &str = if cfg!(target_os = "windows") { "\r\n" } else { "\n" };...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/msgpackz.rs
crates/nu-command/src/formats/to/msgpackz.rs
use std::io::Write; use nu_engine::command_prelude::*; use nu_protocol::shell_error::io::IoError; use super::msgpack::write_value; const BUFFER_SIZE: usize = 65536; const DEFAULT_QUALITY: u32 = 3; // 1 can be very bad const DEFAULT_WINDOW_SIZE: u32 = 20; #[derive(Clone)] pub struct ToMsgpackz; impl Command for ToM...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/tsv.rs
crates/nu-command/src/formats/to/tsv.rs
use std::sync::Arc; use crate::formats::to::delimited::to_delimited_data; use nu_engine::command_prelude::*; use nu_protocol::Config; use super::delimited::ToDelimitedDataArgs; #[derive(Clone)] pub struct ToTsv; impl Command for ToTsv { fn name(&self) -> &str { "to tsv" } fn signature(&self) ->...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false
nushell/nushell
https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/formats/to/mod.rs
crates/nu-command/src/formats/to/mod.rs
mod command; mod csv; mod delimited; mod json; mod md; mod msgpack; mod msgpackz; mod nuon; mod text; mod toml; mod tsv; mod xml; mod yaml; pub use self::csv::ToCsv; pub use self::toml::ToToml; pub use command::To; pub use json::ToJson; pub use md::ToMd; pub use msgpack::ToMsgpack; pub use msgpackz::ToMsgpackz; pub us...
rust
MIT
6d3cb27fa40b324a1168c577aee7f3532a5e157e
2026-01-04T15:32:17.606688Z
false