Crate nu_command

Source
Expand description

This crate contains the majority of our commands

We allow ourselves to move some of the commands in nu-command to nu-cmd-* crates as needed.

§Internal Nushell crate

This crate implements components of Nushell and is not designed to support plugin authors or other users directly.

Modules§

column
drop_
math_
nth
path_
tls
TLS support for networking commands.

Structs§

All
Ansi
AnsiLink
AnsiStrip
Any
Append
Ast
Bytes
BytesAdd
BytesAt
BytesBuild
BytesCollect
BytesEndsWith
BytesIndexOf
BytesLen
BytesRemove
BytesReplace
BytesReverse
BytesSplit
BytesStartsWith
Cal
Cd
Char
ChunkBy
Chunks
Clear
Columns
Compact
Complete
ConfigEnv
ConfigFlatten
ConfigMeta
ConfigNu
ConfigReset
ConfigUseColors
Date
DateFormat
DateFromHuman
DateHumanize
DateListTimezones
DateNow
DateToTimezone
Debug
DebugEnv
DebugInfo
DebugProfile
Decode
DecodeBase32
DecodeBase64
DecodeBase32Hex
DecodeHex
Default
DetectColumns
DirBuilder
DirInfo
Drop
DropColumn
DropNth
Du
Each
Encode
EncodeBase32
EncodeBase64
EncodeBase32Hex
EncodeHex
Enumerate
Every
Exec
Exit
Explain
ExportEnv
External
FileInfo
Fill
Filter
Find
First
Flatten
Format
FormatDate
FormatDuration
FormatFilesize
From
FromCsv
FromJson
FromMsgpack
FromMsgpackz
FromNuon
FromOds
FromSsv
FromToml
FromTsv
FromXlsx
FromXml
FromYaml
FromYml
Generate
Get
Glob
Griddle
GroupBy
Hash
Headers
Help
HelpAliases
HelpCommands
HelpEscapes
HelpExterns
HelpModules
HelpOperators
HelpPipeAndRedirect
Histogram
Http
HttpDelete
HttpGet
HttpHead
HttpOptions
HttpPatch
HttpPost
HttpPut
Input
InputList
InputListen
Insert
Inspect
Interleave
Into
IntoBinary
IntoBool
IntoCellPath
IntoDatetime
IntoDuration
IntoFilesize
IntoFloat
IntoGlob
IntoInt
IntoRecord
IntoString
IntoValue
IsAdmin
IsEmpty
IsNotEmpty
IsTerminal
ItemMapperState
Items
Job
JobFlush
JobId
JobKill
JobList
JobRecv
JobSend
JobSpawn
JobTag
JobUnfreeze
Join
Kill
Last
Length
LetEnv
Lines
LoadEnv
Ls
Math
MathAbs
MathAvg
MathCeil
MathFloor
MathLog
MathMax
MathMedian
MathMin
MathMode
MathProduct
MathRound
MathSqrt
MathStddev
MathSum
MathVariance
Merge
MergeDeep
Metadata
MetadataAccess
MetadataSet
Mktemp
Move
NuCheck
Open
Panic
ParEach
Parse
Path
PathBasename
PathDirname
PathExists
PathExpand
PathJoin
PathParse
PathRelativeTo
PathSelf
PathSplit
PathType
Port
Prepend
Ps
Random
RandomBinary
RandomBool
RandomChars
RandomDice
RandomFloat
RandomInt
RandomUuid
Reduce
Reject
Rename
Reverse
Rm
Save
Select
Seq
SeqChar
SeqDate
Shuffle
Skip
SkipUntil
SkipWhile
Sleep
Slice
Sort
SortBy
Source
Source a file for environment variables.
SourceEnv
Source a file for environment variables.
Split
SplitCellPath
SplitChars
SplitColumn
SplitList
SplitRow
SplitWords
Start
Str
StrCapitalize
StrContains
StrDistance
StrDowncase
StrEndswith
StrExpand
StrIndexOf
StrJoin
StrLength
StrReplace
StrReverse
StrStartsWith
StrStats
StrSubstring
StrTrim
StrUpcase
Sys
SysCpu
SysDisks
SysHost
SysMem
SysNet
SysTemp
SysUsers
Table
Take
TakeUntil
TakeWhile
Tee
Term
TermQuery
TermSize
TimeIt
To
ToCsv
ToJson
ToMd
ToMsgpack
ToMsgpackz
ToNuon
ToText
ToToml
ToTsv
ToXml
ToYaml
ToYml
Transpose
Tutor
UCp
ULimit
UMkdir
UMv
UName
UTouch
Uniq
UniqBy
Update
Upsert
Url
UrlBuildQuery
UrlDecode
UrlEncode
UrlJoin
UrlParse
UrlSplitQuery
ValueCounter
Values
VersionCheck
View
ViewBlocks
ViewFiles
ViewIr
ViewSource
ViewSpan
Watch
Where
Which
Whoami
Window
WithEnv
Wrap
Zip

Enums§

Comparator
A specification of sort order for sort_by.

Functions§

add_shell_command_context
build_table
command_not_found
Returns a helpful error message given an invalid command name,
compare_by
compare_cell_path
compare_custom_closure
compare_key_closure
compare_strings
compare_values
empty
eval_external_arguments
Evaluate all arguments, performing expansions when necessary.
find_columns
grapheme_flags
grapheme_flags_const
operate
removed_commands
Return map of <removed_command_name, new_command_name> This covers simple removed commands nicely, but it’s not great for deprecating subcommands like foo bar where foo is still a valid command. For those, it’s currently easiest to have a “stub” command that just returns an error.
sort
Sort a slice of Values.
sort_by
Sort a slice of Values by criteria specified by one or multiple Comparators.
sort_record
Sort a record’s key-value pairs.
uniq
which
Searches for the absolute path of an executable by name. .bat and .cmd files are recognized as executables on Windows.

Type Aliases§

HashMd5
HashSha256