Stefan Holderbach
0afe1e4e67
Test command names and search terms for redundancy ( #6380 )
...
* Test commands for proper names and search terms
Assert that the `Command.name()` is equal to `Signature.name`
Check that search terms are not just substrings of the command name as
they would not help finding the command.
* Clean up search terms
Remove redundant terms that just replicate the command name.
Try to eliminate substring between search terms, clean up where
necessary.
2022-08-24 11:16:47 +02:00
Justin Ma
ce6df93d05
Add bits shl
and bits shr
command ( #6202 )
...
* Add `bits shift-left` and `bits shift-right` command
* update bits shift error tips
* some code refactor
* update shift right
* some code refactor for bits shift commands
* rename bits shift commands align with bits operators
* update search term
* Update crates/nu-command/src/bits/not.rs
Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
* Update crates/nu-command/src/bits/shift_left.rs
Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
* Update crates/nu-command/src/bits/shift_right.rs
Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
* ci skip
* change default number-bytes for bits shift
* fix bits not tests
* fix bits tests
Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
2022-08-02 15:52:04 -05:00
pwygab
8f00848ff9
add a fair amount ofsearch terms ( #6090 )
2022-07-21 06:29:41 -05:00
WindSoilder
9e3c64aa84
Add bytes collect, bytes remove, bytes build cmd ( #6008 )
...
* add bytes collect
* index_of support searching from end
* add bytes remove
* make bytes replace work better for empty pattern
* add bytes build
* remove comment
* tweak words
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-07-11 06:26:00 -05:00
WindSoilder
81df42d63b
add more bytes cmd ( #5989 )
2022-07-08 21:42:31 -05:00
WindSoilder
e0b4ab09eb
compatible with old rust ( #5974 )
2022-07-06 18:22:45 -05:00
WindSoilder
22edb37162
Add some bytes relative cmd ( #5967 )
...
* add reverse, ends_with command
* add bytes replace, make little refactor
* add bytes add
2022-07-06 08:25:37 -05:00
Darren Schroeder
1ac87715ff
add bytes root command ( #5956 )
...
* add bytes root command
* fixed type-o
2022-07-06 16:46:56 +12:00
WindSoilder
390d06d4e7
add bytes starts-with command ( #5950 )
...
* refactor operate, make it generic
* refactor operate, add starts with command
* add comment
* remove useless file
2022-07-05 06:42:01 -05:00
WindSoilder
1e8212a938
add bytes len ( #5945 )
2022-07-04 05:51:07 -05:00