Commit Graph

2468 Commits

Author SHA1 Message Date
Sam Hedin
3d213a63c5 Non-working errors 2020-06-22 18:42:46 +02:00
Sam Hedin
632c6d1cd9 Nicer errors for autoenv commands 2020-06-22 17:32:44 +02:00
Sam Hedin
59cd51b132 Clippy 2020-06-22 16:53:27 +02:00
Sam Hedin
0215e4c1b6 Merge remote-tracking branch 'upstream/master' into direnv-rewrite 2020-06-22 16:42:54 +02:00
Sam Hedin
a9469743bc Remove unused code 2020-06-22 16:32:04 +02:00
Sam Hedin
a53368ccc8 Use trust functionality when setting vars 2020-06-22 16:28:29 +02:00
Sam Hedin
0d44ddd798 Check hashes 2020-06-22 16:12:03 +02:00
Sam Hedin
3a0ada6486 Start using autoenv 2020-06-22 15:43:40 +02:00
Darren Schroeder
e8476d8fbb
removed some comments (#2032)
removed comments that i shouldn't have left in
2020-06-22 08:30:43 -05:00
Sam Hedin
e35c423796 Merge branch 'added-security-1965' of github.com:samhedin/nushell into added-security-1965 2020-06-22 14:03:58 +02:00
Sam Hedin
1ac8cd4392 Autoenv trust and untrust 2020-06-22 14:03:27 +02:00
Sam Hedin
a77c8d01fa Fix path 2020-06-22 13:56:57 +02:00
Sam Hedin
1b83248558 Fix path 2020-06-22 13:48:29 +02:00
bailey-layzer
7532618bdc
Add error for division by zero using "=" (#2002) (#2030)
* error for division by zero with =

* cargo fmt

* add helper zero_division_error

* tests for zero division error

* fix test names (zero div error)
2020-06-22 08:50:43 +12:00
Sam Hedin
15a8e26664 Revert "OsString and paths"
This reverts commit e6eedf8824.
2020-06-21 21:39:43 +02:00
Sam Hedin
e6eedf8824 OsString and paths 2020-06-21 21:25:40 +02:00
HiranmayaGundu
e3e1e6f81b
Adds a test case for changing drives using drive letter in Windows (#2022)
* added test case to test check switching drives using drive letter in windows

* modified test case to not use config, assert file exists
2020-06-22 07:02:58 +12:00
Sam Hedin
4a4d8c78fb ... actually add autoenv untrust this time 2020-06-21 20:59:38 +02:00
Sam Hedin
74fbf786c4 Add autoenv untrust command 2020-06-21 20:59:21 +02:00
Sam Hedin
2224d07b8a Optional directory arg 2020-06-21 19:59:48 +02:00
Sam Hedin
1cf177cbfd Use serde for autoenv 2020-06-21 19:40:32 +02:00
Sam Hedin
500192a642 toml 2020-06-21 19:04:37 +02:00
Sam Hedin
992522af66 autoenv trust toml 2020-06-21 15:05:27 +02:00
siedentop
bce6f5a3e6
Uniq: --count flag to count occurences (#2017)
* uniq: Add counting option (WIP!)

Usage:

fetch https://raw.githubusercontent.com/timbray/topfew/master/test/data/access-1k | lines | wrap item | uniq | sort-by count | last 10

* uniq: Add first test

* uniq: Re-enable the non-counting variant.

* uniq: Also handle primitive lines.

* uniq: Update documentation

* uniq: Final comment about error handling. Let's get some feedback

* uniq: Address review comments.

Not happy with the way I create a TypeError. There must be a cleaner
way. Anyway, good for shipping.

* uniq: Use Labeled_error as suggested by jturner in chat.

* uniq: Return error directly.

Co-authored-by: Christoph Siedentop <christoph@siedentop.name>
2020-06-21 12:22:06 +12:00
Jonathan Turner
480600c465
Fix wrap of carriage returns in cells (#2027)
* Fix carriage returns in cells

* Fix carriage returns in cells
2020-06-21 09:33:58 +12:00
Jonathan Turner
89c737f456
Finish move to nu-table (#2025) 2020-06-21 07:25:07 +12:00
Joseph T. Lyons
4e83363dd3
Upgrade heim to 0.1.0-beta.3 (#2019) 2020-06-21 06:55:16 +12:00
Darren Schroeder
de6d8738c4
Simplify textview match (#2024)
* simplify textview match code

* Math median tests and documentation additions (#2018)

* Add math median example and unit tests

* Update output of other all math ls command examples to keep consistent with math median output

* Fix output of math max example

* Update output of other math commands using pwd examples to keep data consistent
2020-06-20 12:16:36 -05:00
Joseph T. Lyons
853d7e7120
Math median tests and documentation additions (#2018)
* Add math median example and unit tests

* Update output of other all math ls command examples to keep consistent with math median output

* Fix output of math max example

* Update output of other math commands using pwd examples to keep data consistent
2020-06-20 00:28:03 -05:00
Andrés N. Robalino
b0c30098e4
Sort primitives explictly. (#2016)
* Sort primitives explictly.

* Write backing up test.
2020-06-19 23:34:36 -05:00
Jonathan Turner
fcbaefed52
Nu table (#2015)
* WIP

* Get ready to land nu-table

* Remove unwrap
2020-06-20 15:41:53 +12:00
Darren Schroeder
77e02ac1c1
Fixed grammar (#2012) 2020-06-19 20:54:25 -05:00
Joseph T Lyons
088901b24f Rename average to avg 2020-06-19 18:59:00 -05:00
Darren Schroeder
ed7a62bca3
textview config docs (#2011)
* documentation for bat config changes

* renamed to textview, added fetch example

Co-authored-by: Darren Schroeder <fdncred@hotmail.com>
2020-06-19 15:45:56 -05:00
Darren Schroeder
6bfd8532e4
Bat config (#2010)
* WIP - changes to support bat config

* added bat configuration

* removed debug info

* clippy fix

* changed [bat] to [textview]

Co-authored-by: Darren Schroeder <fdncred@hotmail.com>
2020-06-19 15:08:59 -05:00
Joseph T. Lyons
bc9cc75c8a
Minor Math Sum Additions (#2007)
* Move sum tests into math directory

* Move sum documentation over to math documentation

One sum example already existed in the math examples and a few of the others were outdated and didn't work, so I only moved one over, and updated their output

* Remove no-longer-in-use mod statement
2020-06-20 06:00:18 +12:00
Joseph T. Lyons
53a6e9f0bd
Convert sum command into subcommand of the math command (#2004)
* Convert sum command into subcommand of the math command

* Add bullet points to math.md documentation
2020-06-18 21:02:01 -05:00
Andrés N. Robalino
5f9de80d9b Math#media - ability to compute median value. 2020-06-18 16:59:43 -05:00
Joseph T. Lyons
353b33be1b
Add support to allow the week day start in cal to be configured via a flag (#1996)
* Add support to allow the week day start in cal to be configurable

* Fix variable name

* Use a flag instead of a configuration setting for specifying the starting day of the week
2020-06-19 05:34:51 +12:00
Sam Hedin
a54a596afd Initialize autoenv and autoenv trust 2020-06-18 18:58:50 +02:00
Sam Hedin
35bb9f2d1e Init autoenv command 2020-06-18 07:36:53 +02:00
Sam Hedin
a173817889 Cleanup, stop tracking overwritten values as nu takes care of it 2020-06-18 07:25:45 +02:00
Sam Hedin
acd3215b36 Remove overwritten values tracking, as it is not needed 2020-06-18 07:19:30 +02:00
Andrés N. Robalino
96d58094cf Fix regression. skip-until 'skips' until condition is met. 2020-06-17 14:08:09 -05:00
Andrés N. Robalino
94aac0e8dd Remove unused pattern matched tag fields. 2020-06-17 13:34:17 -05:00
Andrés N. Robalino
9f54d238ba Refactoring and more split-by flexibility. 2020-06-17 13:34:17 -05:00
Andrés N. Robalino
778e497903 Refactoring and more group-by flexibility. 2020-06-17 13:34:17 -05:00
Sam Hedin
2e4df38c83 todo.org 2020-06-17 14:17:26 +02:00
Sam Hedin
1611c7a78b Merge branch 'direnv-rewrite' 2020-06-17 14:06:24 +02:00
Sam Hedin
233d864f47 Restore overwritten vals code 2020-06-17 14:06:10 +02:00