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/network/port.rs | crates/nu-command/src/network/port.rs | use nu_engine::command_prelude::*;
use nu_protocol::shell_error::io::IoError;
use std::{net::TcpListener, ops::RangeInclusive};
#[derive(Clone)]
pub struct Port;
impl Command for Port {
fn name(&self) -> &str {
"port"
}
fn signature(&self) -> Signature {
Signature::build("port")
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/mod.rs | crates/nu-command/src/network/mod.rs | #[cfg(feature = "network")]
mod http;
#[cfg(feature = "network")]
mod port;
#[cfg(feature = "network")]
pub mod tls;
mod url;
#[cfg(feature = "network")]
mod version_check;
#[cfg(feature = "network")]
pub use self::http::*;
pub use self::url::*;
#[cfg(feature = "network")]
pub use port::Port;
#[cfg(feature = "networ... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/tls/impl_native_tls.rs | crates/nu-command/src/network/tls/impl_native_tls.rs | use nu_protocol::ShellError;
use ureq::tls::{TlsConfig, TlsProvider};
#[doc = include_str!("./tls_config.rustdoc.md")]
pub fn tls_config(allow_insecure: bool) -> Result<TlsConfig, ShellError> {
// The impl for rustls has the option to use other root certificates.
// This is kind ob unnecessary for the native t... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/tls/mod.rs | crates/nu-command/src/network/tls/mod.rs | //! TLS support for networking commands.
//!
//! This module is available when the `network` feature is enabled. It requires
//! either the `native-tls` or `rustls-tls` feature to be selected.
//!
//! See [`tls`] for how to get a TLS connector.
#[cfg(feature = "native-tls")]
#[path = "impl_native_tls.rs"]
mod impl_tls... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/tls/impl_rustls.rs | crates/nu-command/src/network/tls/impl_rustls.rs | use std::sync::{Arc, OnceLock};
use nu_protocol::ShellError;
use rustls::crypto::CryptoProvider;
use ureq::tls::{RootCerts, TlsConfig};
// TODO: replace all these generic errors with proper errors
/// Stores the crypto provider used by `rustls`.
///
/// This struct lives in the [`CRYPTO_PROVIDER`] static.
/// It c... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/parse.rs | crates/nu-command/src/network/url/parse.rs | use nu_engine::command_prelude::*;
use nu_protocol::Config;
use url::Url;
use super::query::query_string_to_table;
#[derive(Clone)]
pub struct UrlParse;
impl Command for UrlParse {
fn name(&self) -> &str {
"url parse"
}
fn signature(&self) -> Signature {
Signature::build("url parse")
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/encode.rs | crates/nu-command/src/network/url/encode.rs | use nu_cmd_base::input_handler::{CellPathOnlyArgs, operate};
use nu_engine::command_prelude::*;
use percent_encoding::{AsciiSet, NON_ALPHANUMERIC, utf8_percent_encode};
#[derive(Clone)]
pub struct UrlEncode;
impl Command for UrlEncode {
fn name(&self) -> &str {
"url encode"
}
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/network/url/decode.rs | crates/nu-command/src/network/url/decode.rs | use nu_cmd_base::input_handler::{CellPathOnlyArgs, operate};
use nu_engine::command_prelude::*;
use percent_encoding::percent_decode_str;
#[derive(Clone)]
pub struct UrlDecode;
impl Command for UrlDecode {
fn name(&self) -> &str {
"url decode"
}
fn signature(&self) -> Signature {
Signatu... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/url_.rs | crates/nu-command/src/network/url/url_.rs | use nu_engine::{command_prelude::*, get_full_help};
#[derive(Clone)]
pub struct Url;
impl Command for Url {
fn name(&self) -> &str {
"url"
}
fn signature(&self) -> Signature {
Signature::build("url")
.input_output_types(vec![(Type::Nothing, Type::String)])
.categor... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/mod.rs | crates/nu-command/src/network/url/mod.rs | mod build_query;
mod decode;
mod encode;
mod join;
mod parse;
mod query;
mod split_query;
mod url_;
pub use self::parse::UrlParse;
pub use build_query::UrlBuildQuery;
pub use decode::UrlDecode;
pub use encode::UrlEncode;
pub use join::UrlJoin;
pub use split_query::UrlSplitQuery;
pub use url_::Url;
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/join.rs | crates/nu-command/src/network/url/join.rs | use nu_engine::command_prelude::*;
use super::query::{record_to_query_string, table_to_query_string};
#[derive(Clone)]
pub struct UrlJoin;
impl Command for UrlJoin {
fn name(&self) -> &str {
"url join"
}
fn signature(&self) -> nu_protocol::Signature {
Signature::build("url join")
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/build_query.rs | crates/nu-command/src/network/url/build_query.rs | use nu_engine::command_prelude::*;
use super::query::{record_to_query_string, table_to_query_string};
#[derive(Clone)]
pub struct UrlBuildQuery;
impl Command for UrlBuildQuery {
fn name(&self) -> &str {
"url build-query"
}
fn signature(&self) -> Signature {
Signature::build("url build-qu... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/query.rs | crates/nu-command/src/network/url/query.rs | use std::borrow::Cow;
use nu_protocol::{IntoValue, Record, ShellError, Span, Type, Value};
pub fn record_to_query_string(
record: &Record,
span: Span,
head: Span,
) -> Result<String, ShellError> {
let mut row_vec = vec![];
for (k, v) in record {
match v {
Value::List { vals, ..... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/url/split_query.rs | crates/nu-command/src/network/url/split_query.rs | use nu_engine::command_prelude::*;
use super::query::query_string_to_table;
#[derive(Clone)]
pub struct UrlSplitQuery;
impl Command for UrlSplitQuery {
fn name(&self) -> &str {
"url split-query"
}
fn signature(&self) -> Signature {
Signature::build("url split-query")
.input_o... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/put.rs | crates/nu-command/src/network/http/put.rs | use crate::network::http::client::add_unix_socket_flag;
use crate::network::http::client::{
HttpBody, RequestFlags, RequestMetadata, check_response_redirection, expand_unix_socket_path,
http_client, http_client_pool, http_parse_redirect_mode, http_parse_url,
request_add_authorization_header, request_add_cus... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/http_.rs | crates/nu-command/src/network/http/http_.rs | use nu_engine::{command_prelude::*, get_full_help};
use super::client::RedirectMode;
use super::get::run_get;
use super::post::run_post;
#[derive(Clone)]
pub struct Http;
impl Command for Http {
fn name(&self) -> &str {
"http"
}
fn signature(&self) -> Signature {
Signature::build("http")... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/timeout_extractor_reader.rs | crates/nu-command/src/network/http/timeout_extractor_reader.rs | //! Ureq 3.0.12 converts timeout errors into std::io::ErrorKind::Other: <https://github.com/algesten/ureq/blob/3.0.12/src/error.rs#L193>
//! But Nushell infrastructure expects std::io::ErrorKind::Timeout when an operation times out.
//! This is an adapter that converts former into latter.
use std::io::Read;
/// Conve... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/client.rs | crates/nu-command/src/network/http/client.rs | use crate::{
formats::value_to_json_value,
network::{
http::{
resolver::{DnsLookupResolver, LookupError},
timeout_extractor_reader::UreqTimeoutExtractorReader,
},
tls::tls_config,
},
};
use base64::{
Engine, alphabet,
engine::{GeneralPurpose, general_p... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | true |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/options.rs | crates/nu-command/src/network/http/options.rs | use crate::network::http::client::add_unix_socket_flag;
use crate::network::http::client::{
RedirectMode, RequestFlags, RequestMetadata, expand_unix_socket_path, http_client,
http_client_pool, http_parse_url, request_add_authorization_header, request_add_custom_headers,
request_handle_response, request_set_... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/mod.rs | crates/nu-command/src/network/http/mod.rs | mod client;
mod delete;
mod get;
mod head;
mod http_;
mod options;
mod patch;
mod pool;
mod post;
mod put;
mod resolver;
mod timeout_extractor_reader;
mod unix_socket;
pub use delete::HttpDelete;
pub use get::HttpGet;
pub use head::HttpHead;
pub use http_::Http;
pub use options::HttpOptions;
pub use patch::HttpPatch;
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/head.rs | crates/nu-command/src/network/http/head.rs | use crate::network::http::client::add_unix_socket_flag;
use crate::network::http::client::{
check_response_redirection, expand_unix_socket_path, extract_response_headers,
handle_response_status, headers_to_nu, http_client, http_client_pool, http_parse_redirect_mode,
http_parse_url, request_add_authorization... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/post.rs | crates/nu-command/src/network/http/post.rs | use crate::network::http::client::add_unix_socket_flag;
use crate::network::http::client::{
HttpBody, RequestFlags, RequestMetadata, check_response_redirection, expand_unix_socket_path,
http_client, http_client_pool, http_parse_redirect_mode, http_parse_url,
request_add_authorization_header, request_add_cus... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/resolver.rs | crates/nu-command/src/network/http/resolver.rs | use std::{
error, fmt, io,
net::{SocketAddr, SocketAddrV4, SocketAddrV6},
};
use http::Uri;
use ureq::{
config::Config,
unversioned::resolver::{ArrayVec, ResolvedSocketAddrs, Resolver},
unversioned::transport::NextTimeout,
};
#[derive(Debug)]
pub struct DnsLookupResolver;
impl Resolver for DnsLoo... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/pool.rs | crates/nu-command/src/network/http/pool.rs | use crate::network::http::client::{
RedirectMode, add_unix_socket_flag, expand_unix_socket_path, http_parse_redirect_mode,
reset_http_client_pool,
};
use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct HttpPool;
impl Command for HttpPool {
fn name(&self) -> &str {
"http pool"
}
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/get.rs | crates/nu-command/src/network/http/get.rs | use crate::network::http::client::{
RequestFlags, RequestMetadata, check_response_redirection, expand_unix_socket_path,
http_client, http_parse_redirect_mode, http_parse_url, request_add_authorization_header,
request_add_custom_headers, request_handle_response, request_set_timeout, send_request_no_body,
};
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/unix_socket.rs | crates/nu-command/src/network/http/unix_socket.rs | //! Unix domain socket connector for ureq HTTP client.
//!
//! This module provides a custom transport implementation for connecting to HTTP servers
//! over Unix domain sockets, commonly used for Docker API, systemd, and other local services.
use std::fmt;
use std::io::{Read, Write};
use std::path::PathBuf;
#[cfg(un... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/delete.rs | crates/nu-command/src/network/http/delete.rs | use crate::network::http::client::add_unix_socket_flag;
use crate::network::http::client::{
HttpBody, RequestFlags, RequestMetadata, check_response_redirection, expand_unix_socket_path,
http_client, http_client_pool, http_parse_redirect_mode, http_parse_url,
request_add_authorization_header, request_add_cus... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/network/http/patch.rs | crates/nu-command/src/network/http/patch.rs | use crate::network::http::client::add_unix_socket_flag;
use crate::network::http::client::{
HttpBody, RequestFlags, RequestMetadata, check_response_redirection, expand_unix_socket_path,
http_client, http_client_pool, http_parse_redirect_mode, http_parse_url,
request_add_authorization_header, request_add_cus... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/mod.rs | crates/nu-command/src/database/mod.rs | mod commands;
mod values;
use commands::add_commands_decls;
pub use values::{
MEMORY_DB, SQLiteDatabase, convert_sqlite_row_to_nu_value, convert_sqlite_value_to_nu_value,
open_connection_in_memory, open_connection_in_memory_custom, values_to_sql,
};
use nu_protocol::engine::StateWorkingSet;
pub fn add_datab... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/commands/query_db.rs | crates/nu-command/src/database/commands/query_db.rs | use crate::database::{SQLiteDatabase, values::sqlite::nu_value_to_params};
use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct QueryDb;
impl Command for QueryDb {
fn name(&self) -> &str {
"query db"
}
fn signature(&self) -> Signature {
Signature::build(self.name())
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/commands/schema.rs | crates/nu-command/src/database/commands/schema.rs | use super::super::SQLiteDatabase;
use crate::database::values::definitions::{db_row::DbRow, db_table::DbTable};
use nu_engine::command_prelude::*;
use rusqlite::Connection;
#[derive(Clone)]
pub struct SchemaDb;
impl Command for SchemaDb {
fn name(&self) -> &str {
"schema"
}
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/database/commands/mod.rs | crates/nu-command/src/database/commands/mod.rs | mod into_sqlite;
mod query;
mod query_db;
mod schema;
use into_sqlite::IntoSqliteDb;
use nu_protocol::engine::StateWorkingSet;
use query::Query;
use query_db::QueryDb;
use schema::SchemaDb;
pub fn add_commands_decls(working_set: &mut StateWorkingSet) {
macro_rules! bind_command {
( $command:expr ) => ... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/commands/query.rs | crates/nu-command/src/database/commands/query.rs | use nu_engine::{command_prelude::*, get_full_help};
#[derive(Clone)]
pub struct Query;
impl Command for Query {
fn name(&self) -> &str {
"query"
}
fn signature(&self) -> Signature {
Signature::build("query")
.category(Category::Database)
.input_output_types(vec![(T... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/commands/into_sqlite.rs | crates/nu-command/src/database/commands/into_sqlite.rs | use crate::{
MEMORY_DB,
database::values::sqlite::{open_sqlite_db, values_to_sql},
};
use nu_engine::command_prelude::*;
use itertools::Itertools;
use nu_protocol::Signals;
use std::{borrow::Cow, path::Path};
pub const DEFAULT_TABLE_NAME: &str = "main";
#[derive(Clone)]
pub struct IntoSqliteDb;
impl Command... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/sqlite.rs | crates/nu-command/src/database/values/sqlite.rs | use super::definitions::{
db_column::DbColumn, db_constraint::DbConstraint, db_foreignkey::DbForeignKey,
db_index::DbIndex, db_table::DbTable,
};
use nu_protocol::{
CustomValue, PipelineData, Record, ShellError, Signals, Span, Spanned, Value, casing::Casing,
engine::EngineState, shell_error::io::IoError... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/mod.rs | crates/nu-command/src/database/values/mod.rs | pub mod definitions;
pub mod sqlite;
pub use sqlite::{
MEMORY_DB, SQLiteDatabase, convert_sqlite_row_to_nu_value, convert_sqlite_value_to_nu_value,
open_connection_in_memory, open_connection_in_memory_custom, values_to_sql,
};
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/definitions/db_index.rs | crates/nu-command/src/database/values/definitions/db_index.rs | use super::db_row::DbRow;
#[derive(Debug)]
pub struct DbIndex {
pub name: Option<String>,
pub column_name: Option<String>,
pub seqno: Option<i16>,
}
impl DbRow for DbIndex {
fn fields(&self) -> Vec<String> {
vec![
"name".to_string(),
"column_name".to_string(),
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/definitions/db_table.rs | crates/nu-command/src/database/values/definitions/db_table.rs | #[derive(Debug, Clone, Eq, PartialEq)]
pub struct DbTable {
pub name: String,
pub create_time: Option<chrono::DateTime<chrono::Utc>>,
pub update_time: Option<chrono::DateTime<chrono::Utc>>,
pub engine: Option<String>,
pub schema: Option<String>,
}
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/definitions/db_column.rs | crates/nu-command/src/database/values/definitions/db_column.rs | use crate::database::values::definitions::db_row::DbRow;
#[derive(Debug)]
pub struct DbColumn {
/// Column Index
pub cid: Option<i32>,
/// Column Name
pub name: Option<String>,
/// Column Type
pub r#type: Option<String>,
/// Column has a NOT NULL constraint
pub notnull: Option<i16>,
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/definitions/db_row.rs | crates/nu-command/src/database/values/definitions/db_row.rs | pub trait DbRow: std::marker::Send {
fn fields(&self) -> Vec<String>;
fn columns(&self) -> Vec<String>;
}
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/definitions/db_constraint.rs | crates/nu-command/src/database/values/definitions/db_constraint.rs | use super::db_row::DbRow;
#[derive(Debug)]
pub struct DbConstraint {
pub name: String,
pub column_name: String,
pub origin: String,
}
impl DbRow for DbConstraint {
fn fields(&self) -> Vec<String> {
vec![
"name".to_string(),
"column_name".to_string(),
"origin... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/definitions/mod.rs | crates/nu-command/src/database/values/definitions/mod.rs | pub mod db_column;
pub mod db_constraint;
pub mod db_foreignkey;
pub mod db_index;
pub mod db_row;
pub mod db_table;
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/database/values/definitions/db_foreignkey.rs | crates/nu-command/src/database/values/definitions/db_foreignkey.rs | use super::db_row::DbRow;
#[derive(Debug)]
pub struct DbForeignKey {
pub column_name: Option<String>,
pub ref_table: Option<String>,
pub ref_column: Option<String>,
}
impl DbRow for DbForeignKey {
fn fields(&self) -> Vec<String> {
vec![
"column_name".to_string(),
"ref_t... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/expand.rs | crates/nu-command/src/path/expand.rs | use super::PathSubcommandArguments;
#[allow(deprecated)]
use nu_engine::{
command_prelude::*,
env::{current_dir_str, current_dir_str_const},
};
use nu_path::{canonicalize_with, expand_path_with};
use nu_protocol::engine::StateWorkingSet;
use std::path::Path;
struct Arguments {
strict: bool,
cwd: String... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/parse.rs | crates/nu-command/src/path/parse.rs | use super::PathSubcommandArguments;
use nu_engine::command_prelude::*;
use nu_protocol::engine::StateWorkingSet;
use std::path::Path;
struct Arguments {
extension: Option<Spanned<String>>,
}
impl PathSubcommandArguments for Arguments {}
#[derive(Clone)]
pub struct PathParse;
impl Command for PathParse {
fn ... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/exists.rs | crates/nu-command/src/path/exists.rs | use super::PathSubcommandArguments;
#[allow(deprecated)]
use nu_engine::{command_prelude::*, current_dir, current_dir_const};
use nu_path::expand_path_with;
use nu_protocol::{engine::StateWorkingSet, shell_error::io::IoError};
use std::path::{Path, PathBuf};
struct Arguments {
pwd: PathBuf,
not_follow_symlink:... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/type.rs | crates/nu-command/src/path/type.rs | use super::PathSubcommandArguments;
use nu_engine::command_prelude::*;
use nu_path::AbsolutePathBuf;
use nu_protocol::{engine::StateWorkingSet, shell_error::io::IoError};
use std::{io, path::Path};
struct Arguments {
pwd: AbsolutePathBuf,
}
impl PathSubcommandArguments for Arguments {}
#[derive(Clone)]
pub struc... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/relative_to.rs | crates/nu-command/src/path/relative_to.rs | use super::PathSubcommandArguments;
use nu_engine::command_prelude::*;
use nu_path::expand_to_real_path;
use nu_protocol::engine::StateWorkingSet;
use std::path::Path;
struct Arguments {
path: Spanned<String>,
}
impl PathSubcommandArguments for Arguments {}
#[derive(Clone)]
pub struct PathRelativeTo;
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/path/mod.rs | crates/nu-command/src/path/mod.rs | mod basename;
mod dirname;
mod exists;
mod expand;
mod join;
mod parse;
pub mod path_;
mod relative_to;
mod self_;
mod split;
mod r#type;
pub use basename::PathBasename;
pub use dirname::PathDirname;
pub use exists::PathExists;
pub use expand::PathExpand;
pub use join::PathJoin;
pub use parse::PathParse;
pub use path_... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/dirname.rs | crates/nu-command/src/path/dirname.rs | use super::PathSubcommandArguments;
use nu_engine::command_prelude::*;
use nu_protocol::engine::StateWorkingSet;
use std::path::Path;
struct Arguments {
replace: Option<Spanned<String>>,
num_levels: Option<i64>,
}
impl PathSubcommandArguments for Arguments {}
#[derive(Clone)]
pub struct PathDirname;
impl Co... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/join.rs | crates/nu-command/src/path/join.rs | use super::PathSubcommandArguments;
use nu_engine::command_prelude::*;
use nu_protocol::engine::StateWorkingSet;
use std::path::{Path, PathBuf};
struct Arguments {
append: Vec<Spanned<String>>,
}
impl PathSubcommandArguments for Arguments {}
#[derive(Clone)]
pub struct PathJoin;
impl Command for PathJoin {
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/basename.rs | crates/nu-command/src/path/basename.rs | use super::PathSubcommandArguments;
use nu_engine::command_prelude::*;
use nu_protocol::engine::StateWorkingSet;
use std::path::Path;
struct Arguments {
replace: Option<Spanned<String>>,
}
impl PathSubcommandArguments for Arguments {}
#[derive(Clone)]
pub struct PathBasename;
impl Command for PathBasename {
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/path_.rs | crates/nu-command/src/path/path_.rs | use nu_engine::{command_prelude::*, get_full_help};
#[derive(Clone)]
pub struct Path;
impl Command for Path {
fn name(&self) -> &str {
"path"
}
fn signature(&self) -> Signature {
Signature::build("path")
.input_output_types(vec![(Type::Nothing, Type::String)])
.cat... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/path/self_.rs | crates/nu-command/src/path/self_.rs | use nu_engine::command_prelude::*;
use nu_path::expand_path_with;
use nu_protocol::{
engine::StateWorkingSet,
shell_error::{self, io::IoError},
};
#[derive(Clone)]
pub struct PathSelf;
impl Command for PathSelf {
fn name(&self) -> &str {
"path self"
}
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/path/split.rs | crates/nu-command/src/path/split.rs | use super::PathSubcommandArguments;
use nu_engine::command_prelude::*;
use nu_protocol::engine::StateWorkingSet;
use std::path::{Component, Path};
struct Arguments;
impl PathSubcommandArguments for Arguments {}
#[derive(Clone)]
pub struct PathSplit;
impl Command for PathSplit {
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/viewers/griddle.rs | crates/nu-command/src/viewers/griddle.rs | use devicons::icon_for_file;
use lscolors::Style;
use nu_color_config::lookup_ansi_color_style;
use nu_engine::{command_prelude::*, env_to_string};
use nu_protocol::Config;
use nu_term_grid::grid::{Alignment, Cell, Direction, Filling, Grid, GridOptions};
use nu_utils::{get_ls_colors, terminal_size};
use std::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/viewers/table.rs | crates/nu-command/src/viewers/table.rs | // todo: (refactoring) limit get_config() usage to 1 call
// overall reduce the redundant calls to StyleComputer etc.
// the goal is to configure it once...
use std::{collections::VecDeque, io::Read, path::PathBuf, str::FromStr, time::Duration};
use lscolors::{LsColors, Style};
use url::Url;
use web_tim... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | true |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/viewers/mod.rs | crates/nu-command/src/viewers/mod.rs | mod griddle;
mod table;
pub use griddle::Griddle;
pub use table::Table;
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/shells/mod.rs | crates/nu-command/src/shells/mod.rs | mod exit;
pub use exit::Exit;
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/shells/exit.rs | crates/nu-command/src/shells/exit.rs | use nu_engine::{command_prelude::*, exit::cleanup_exit};
#[derive(Clone)]
pub struct Exit;
impl Command for Exit {
fn name(&self) -> &str {
"exit"
}
fn signature(&self) -> Signature {
Signature::build("exit")
.input_output_types(vec![(Type::Nothing, Type::Nothing)])
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/random/byte_stream.rs | crates/nu-command/src/random/byte_stream.rs | use nu_engine::command_prelude::*;
use nu_protocol::Signals;
use rand::{
Rng,
distr::{Alphanumeric, StandardUniform},
rng,
};
pub(super) enum RandomDistribution {
Binary,
Alphanumeric,
}
pub(super) fn random_byte_stream(
distribution: RandomDistribution,
length: usize,
span: Span,
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/random/dice.rs | crates/nu-command/src/random/dice.rs | use nu_engine::command_prelude::*;
use nu_protocol::{DeprecationEntry, DeprecationType, ListStream, ReportMode};
use rand::random_range;
use std::num::NonZeroUsize;
#[derive(Clone)]
pub struct RandomDice;
impl Command for RandomDice {
fn name(&self) -> &str {
"random dice"
}
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/random/chars.rs | crates/nu-command/src/random/chars.rs | use super::byte_stream::{RandomDistribution, random_byte_stream};
use nu_engine::command_prelude::*;
const DEFAULT_CHARS_LENGTH: usize = 25;
#[derive(Clone)]
pub struct RandomChars;
impl Command for RandomChars {
fn name(&self) -> &str {
"random chars"
}
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/random/bool.rs | crates/nu-command/src/random/bool.rs | use nu_engine::command_prelude::*;
use rand::random_bool;
#[derive(Clone)]
pub struct RandomBool;
impl Command for RandomBool {
fn name(&self) -> &str {
"random bool"
}
fn signature(&self) -> Signature {
Signature::build("random bool")
.input_output_types(vec![(Type::Nothing, ... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/random/random_.rs | crates/nu-command/src/random/random_.rs | use nu_engine::{command_prelude::*, get_full_help};
#[derive(Clone)]
pub struct Random;
impl Command for Random {
fn name(&self) -> &str {
"random"
}
fn signature(&self) -> Signature {
Signature::build("random")
.category(Category::Random)
.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/random/mod.rs | crates/nu-command/src/random/mod.rs | mod binary;
mod bool;
mod byte_stream;
mod chars;
mod dice;
mod float;
mod int;
mod random_;
mod uuid;
pub use self::binary::RandomBinary;
pub use self::bool::RandomBool;
pub use self::chars::RandomChars;
pub use self::dice::RandomDice;
pub use self::float::RandomFloat;
pub use self::int::RandomInt;
pub use self::uuid... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/random/binary.rs | crates/nu-command/src/random/binary.rs | use super::byte_stream::{RandomDistribution, random_byte_stream};
use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct RandomBinary;
impl Command for RandomBinary {
fn name(&self) -> &str {
"random binary"
}
fn signature(&self) -> Signature {
Signature::build("random binary")
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/random/float.rs | crates/nu-command/src/random/float.rs | use nu_engine::command_prelude::*;
use nu_protocol::{FloatRange, Range};
use rand::random_range;
use std::ops::Bound;
#[derive(Clone)]
pub struct RandomFloat;
impl Command for RandomFloat {
fn name(&self) -> &str {
"random float"
}
fn signature(&self) -> Signature {
Signature::build("rand... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/random/int.rs | crates/nu-command/src/random/int.rs | use nu_engine::command_prelude::*;
use nu_protocol::Range;
use rand::random_range;
use std::ops::Bound;
#[derive(Clone)]
pub struct RandomInt;
impl Command for RandomInt {
fn name(&self) -> &str {
"random int"
}
fn signature(&self) -> Signature {
Signature::build("random int")
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/random/uuid.rs | crates/nu-command/src/random/uuid.rs | use nu_engine::command_prelude::*;
use uuid::{Timestamp, Uuid};
#[derive(Clone)]
pub struct RandomUuid;
impl Command for RandomUuid {
fn name(&self) -> &str {
"random uuid"
}
fn signature(&self) -> Signature {
Signature::build("random uuid")
.category(Category::Random)
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/kill.rs | crates/nu-command/src/platform/kill.rs | use nu_engine::command_prelude::*;
use nu_system::build_kill_command;
use std::process::Stdio;
#[derive(Clone)]
pub struct Kill;
impl Command for Kill {
fn name(&self) -> &str {
"kill"
}
fn description(&self) -> &str {
"Kill a process using the process id."
}
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/platform/sleep.rs | crates/nu-command/src/platform/sleep.rs | use nu_engine::command_prelude::*;
use std::{
thread,
time::{Duration, Instant},
};
const CTRL_C_CHECK_INTERVAL: Duration = Duration::from_millis(100);
#[derive(Clone)]
pub struct Sleep;
impl Command for Sleep {
fn name(&self) -> &str {
"sleep"
}
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/platform/clear.rs | crates/nu-command/src/platform/clear.rs | use crossterm::{
QueueableCommand,
cursor::MoveTo,
terminal::{Clear as ClearCommand, ClearType},
};
use nu_engine::command_prelude::*;
use nu_protocol::shell_error::io::IoError;
use std::io::Write;
#[derive(Clone)]
pub struct Clear;
impl Command for Clear {
fn name(&self) -> &str {
"clear"
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/dir_info.rs | crates/nu-command/src/platform/dir_info.rs | use filesize::file_real_size_fast;
use nu_glob::Pattern;
use nu_protocol::{ShellError, Signals, Span, Value, record, shell_error::io::IoError};
use std::path::PathBuf;
#[derive(Debug, Clone)]
pub struct DirBuilder {
pub tag: Span,
pub min: Option<u64>,
pub deref: bool,
pub exclude: Option<Pattern>,
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/mod.rs | crates/nu-command/src/platform/mod.rs | mod clear;
mod dir_info;
mod input;
mod is_terminal;
mod kill;
mod sleep;
mod term;
#[cfg(unix)]
mod ulimit;
mod whoami;
pub use clear::Clear;
pub use dir_info::{DirBuilder, DirInfo, FileInfo};
pub use input::Input;
pub use input::InputList;
pub use input::InputListen;
pub use is_terminal::IsTerminal;
pub use kill::Ki... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/whoami.rs | crates/nu-command/src/platform/whoami.rs | use nu_engine::command_prelude::*;
use uucore::{localized_help_template, translate};
#[derive(Clone)]
pub struct Whoami;
impl Command for Whoami {
fn name(&self) -> &str {
"whoami"
}
fn description(&self) -> &str {
"Get the current username using uutils/coreutils whoami."
}
fn si... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/ulimit.rs | crates/nu-command/src/platform/ulimit.rs | use nix::sys::resource::{RLIM_INFINITY, Resource, rlim_t};
use nu_engine::command_prelude::*;
use std::sync::LazyLock;
/// An object contains resource related parameters
struct ResourceInfo<'a> {
name: &'a str,
desc: &'a str,
flag: char,
multiplier: rlim_t,
resource: Resource,
}
impl<'a> Resource... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/is_terminal.rs | crates/nu-command/src/platform/is_terminal.rs | use nu_engine::command_prelude::*;
use std::io::IsTerminal as _;
#[derive(Clone)]
pub struct IsTerminal;
impl Command for IsTerminal {
fn name(&self) -> &str {
"is-terminal"
}
fn signature(&self) -> Signature {
Signature::build("is-terminal")
.input_output_type(Type::Nothing, ... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/input/input_.rs | crates/nu-command/src/platform/input/input_.rs | use crate::platform::input::legacy_input::LegacyInput;
use crate::platform::input::reedline_prompt::ReedlinePrompt;
use nu_engine::command_prelude::*;
use nu_protocol::shell_error::{self, io::IoError};
use reedline::{FileBackedHistory, HISTORY_SIZE, History, HistoryItem, Reedline, Signal};
#[derive(Clone)]
pub struct ... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/input/list.rs | crates/nu-command/src/platform/input/list.rs | use dialoguer::{FuzzySelect, MultiSelect, Select, console::Term};
use nu_engine::command_prelude::*;
use nu_protocol::shell_error::io::IoError;
use std::fmt::{Display, Formatter};
enum InteractMode {
Single(Option<usize>),
Multi(Option<Vec<usize>>),
}
#[derive(Clone)]
struct Options {
name: String,
v... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/input/reedline_prompt.rs | crates/nu-command/src/platform/input/reedline_prompt.rs | use reedline::{
Prompt, PromptEditMode, PromptHistorySearch, PromptHistorySearchStatus, PromptViMode,
};
use std::borrow::Cow;
/// The default prompt indicator
pub static DEFAULT_VI_INSERT_PROMPT_INDICATOR: &str = ": ";
pub static DEFAULT_VI_NORMAL_PROMPT_INDICATOR: &str = "〉";
pub static DEFAULT_MULTILINE_INDICA... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/input/mod.rs | crates/nu-command/src/platform/input/mod.rs | mod input_;
mod input_listen;
mod legacy_input;
mod list;
mod reedline_prompt;
pub use input_::Input;
pub use input_listen::InputListen;
pub use list::InputList;
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/input/legacy_input.rs | crates/nu-command/src/platform/input/legacy_input.rs | use crossterm::{
cursor,
event::{Event, KeyCode, KeyEventKind, KeyModifiers},
execute,
style::Print,
terminal::{self, ClearType},
};
use itertools::Itertools;
use nu_engine::command_prelude::*;
use nu_protocol::shell_error::{self, io::IoError};
use std::{io::Write, time::Duration};
pub trait Legac... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/input/input_listen.rs | crates/nu-command/src/platform/input/input_listen.rs | use crossterm::event::{
DisableBracketedPaste, DisableFocusChange, DisableMouseCapture, EnableBracketedPaste,
EnableMouseCapture, KeyCode, KeyEventKind, KeyModifiers, MouseEvent, MouseEventKind,
};
use crossterm::{execute, terminal};
use nu_engine::command_prelude::*;
use nu_protocol::shell_error::io::IoError;... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/term/term_query.rs | crates/nu-command/src/platform/term/term_query.rs | use std::{
io::{Read, Write},
time::Duration,
};
use nu_engine::command_prelude::*;
use nu_protocol::shell_error::io::IoError;
const CTRL_C: u8 = 3;
#[derive(Clone)]
pub struct TermQuery;
impl Command for TermQuery {
fn name(&self) -> &str {
"term query"
}
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/platform/term/mod.rs | crates/nu-command/src/platform/term/mod.rs | mod term_;
mod term_query;
mod term_size;
pub use term_::Term;
pub use term_query::TermQuery;
pub use term_size::TermSize;
| rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/term/term_.rs | crates/nu-command/src/platform/term/term_.rs | use nu_engine::{command_prelude::*, get_full_help};
#[derive(Clone)]
pub struct Term;
impl Command for Term {
fn name(&self) -> &str {
"term"
}
fn signature(&self) -> Signature {
Signature::build("term")
.category(Category::Platform)
.input_output_types(vec![(Type:... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/platform/term/term_size.rs | crates/nu-command/src/platform/term/term_size.rs | use crossterm::terminal::size;
use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct TermSize;
impl Command for TermSize {
fn name(&self) -> &str {
"term size"
}
fn description(&self) -> &str {
"Returns a record containing the number of columns (width) and rows (height) of the te... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/ast.rs | crates/nu-command/src/debug/ast.rs | use nu_engine::command_prelude::*;
use nu_parser::{flatten_block, parse};
use nu_protocol::{engine::StateWorkingSet, record};
use serde_json::{Value as JsonValue, json};
#[derive(Clone)]
pub struct Ast;
impl Command for Ast {
fn name(&self) -> &str {
"ast"
}
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/debug/view_ir.rs | crates/nu-command/src/debug/view_ir.rs | use nu_engine::command_prelude::*;
use nu_protocol::{BlockId, DeclId};
#[derive(Clone)]
pub struct ViewIr;
impl Command for ViewIr {
fn name(&self) -> &str {
"view ir"
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.required(
"target",
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/view_span.rs | crates/nu-command/src/debug/view_span.rs | use nu_engine::command_prelude::*;
use nu_protocol::PipelineMetadata;
#[derive(Clone)]
pub struct ViewSpan;
impl Command for ViewSpan {
fn name(&self) -> &str {
"view span"
}
fn description(&self) -> &str {
"View the contents of a span."
}
fn extra_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/debug/view.rs | crates/nu-command/src/debug/view.rs | use nu_engine::{command_prelude::*, get_full_help};
#[derive(Clone)]
pub struct View;
impl Command for View {
fn name(&self) -> &str {
"view"
}
fn signature(&self) -> Signature {
Signature::build("view")
.category(Category::Debug)
.input_output_types(vec![(Type::No... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/debug_.rs | crates/nu-command/src/debug/debug_.rs | use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct Debug;
impl Command for Debug {
fn name(&self) -> &str {
"debug"
}
fn description(&self) -> &str {
"Debug print the value(s) piped in."
}
fn signature(&self) -> Signature {
Signature::build("debug")
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/timeit.rs | crates/nu-command/src/debug/timeit.rs | use nu_engine::{ClosureEvalOnce, command_prelude::*};
use nu_protocol::engine::Closure;
use web_time::Instant;
#[derive(Clone)]
pub struct TimeIt;
impl Command for TimeIt {
fn name(&self) -> &str {
"timeit"
}
fn description(&self) -> &str {
"Time how long it takes a closure to run."
}... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/view_files.rs | crates/nu-command/src/debug/view_files.rs | use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct ViewFiles;
impl Command for ViewFiles {
fn name(&self) -> &str {
"view files"
}
fn description(&self) -> &str {
"View the files registered in nushell's EngineState memory."
}
fn extra_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/debug/info.rs | crates/nu-command/src/debug/info.rs | use nu_engine::command_prelude::*;
use sysinfo::{MemoryRefreshKind, Pid, ProcessRefreshKind, RefreshKind, System};
const ENV_PATH_SEPARATOR_CHAR: char = {
#[cfg(target_family = "windows")]
{
';'
}
#[cfg(not(target_family = "windows"))]
{
':'
}
};
#[derive(Clone)]
pub struct Deb... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/env.rs | crates/nu-command/src/debug/env.rs | use nu_engine::{command_prelude::*, env_to_strings};
#[derive(Clone)]
pub struct DebugEnv;
impl Command for DebugEnv {
fn name(&self) -> &str {
"debug env"
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_output_type(Type::Nothing, Type::record())
... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/explain.rs | crates/nu-command/src/debug/explain.rs | use nu_engine::{command_prelude::*, get_eval_expression};
use nu_protocol::{
ast::{self, Argument, Block, Expr, Expression},
engine::Closure,
};
#[derive(Clone)]
pub struct Explain;
impl Command for Explain {
fn name(&self) -> &str {
"explain"
}
fn description(&self) -> &str {
"Ex... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/inspect_table.rs | crates/nu-command/src/debug/inspect_table.rs | // note: Seems like could be simplified
// IMHO: it shall not take 300+ lines :)
// TODO: Simplify
// NOTE: Pool table could be used?
// FIXME: `inspect` wrapping produces too much new lines with small terminal
use self::global_horizontal_char::SetHorizontalChar;
use nu_protocol::Value;
use nu_protocol::engine::... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
nushell/nushell | https://github.com/nushell/nushell/blob/6d3cb27fa40b324a1168c577aee7f3532a5e157e/crates/nu-command/src/debug/util.rs | crates/nu-command/src/debug/util.rs | use nu_protocol::{DataSource, IntoValue, PipelineData, PipelineMetadata, Record, Span, Value};
use std::path::PathBuf;
pub fn extend_record_with_metadata(
mut record: Record,
metadata: Option<&PipelineMetadata>,
head: Span,
) -> Record {
if let Some(PipelineMetadata {
data_source,
conte... | rust | MIT | 6d3cb27fa40b324a1168c577aee7f3532a5e157e | 2026-01-04T15:32:17.606688Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.