Commit Graph

371 Commits

Author SHA1 Message Date
9da896ad4e Attempt so simplify classified 2019-09-08 14:00:04 +12:00
84628f298d Finish fixing failing tests. 2019-09-08 13:35:02 +12:00
4cdaed1ad4 Add echo command 2019-09-08 11:43:53 +12:00
7427ea51df Removed commented out code. 2019-09-07 15:43:30 -07:00
7913ae76f8 Expand pwd command
Expand functionality of the pwd command to better handle the different
types of shells (e.g. FilesystemShell, ValueShell, etc.).
2019-09-07 15:31:16 -07:00
90b358d60b Merge pull request #612 from chhetripradeep/pchhetri/add-pwd-command
Adds pwd command
2019-09-08 06:02:38 +12:00
ee301f9f54 Adds pwd command 2019-09-07 23:53:56 +08:00
8be14a891d Merge pull request #611 from jonathandturner/autoview_plugin
Protect autoview against missing plugins
2019-09-07 20:09:58 +12:00
28fe31d565 Protect autoview against missing plugins 2019-09-07 19:32:07 +12:00
e2b9370f10 Attempt to fix issue with ^C in Windows
This fixes the error case if we ^C during running an external command.  This needs testing across platforms before it lands.
2019-09-07 16:59:13 +12:00
dcd97b6346 Move internal terminology to tables/rows 2019-09-06 04:23:42 +12:00
0a9897c5ca Move us away from mixing OOP and spreadsheet to just spreadsheet 2019-09-05 04:29:49 +12:00
479f0a566e Covert to_* commands to work on whole table 2019-09-04 18:48:40 +12:00
1f05e98965 Refactor to make save.rs readable 2019-09-03 22:21:37 -04:00
ab48d3a3f2 Support binary save 2019-09-03 21:50:23 -04:00
b031d4cd77 can view list of commands for details. 2019-09-03 04:36:23 -05:00
030d73147e can view help for a given command by entering a command. 2019-09-03 04:05:52 -05:00
8a9cdcab17 Split fetch command away from open 2019-09-03 18:04:46 +12:00
7fa09f59c2 Remove unused code
Closes #467
2019-09-01 23:11:05 -07:00
ca0183a136 Migrated numerics to BigInt/BigDecimal
This commit migrates Value's numeric types to BigInt and BigDecimal. The
basic idea is that overflow errors aren't great in a shell environment,
and not really necessary.

The main immediate consequence is that new errors can occur when
serializing Nu values to other formats. You can see this in changes to
the various serialization formats (JSON, TOML, etc.). There's a new
`CoerceInto` trait that uses the `ToPrimitive` trait from `num_traits`
to attempt to coerce a `BigNum` or `BigDecimal` into a target type, and
produces a `RangeError` (kind of `ShellError`) if the coercion fails.

Another possible future consequence is that certain performance-critical
numeric operations might be too slow. If that happens, we can introduce
specialized numeric types to help improve the performance of those
situations, based on the real-world experience.
2019-09-01 22:14:41 -07:00
3d5e31c55d Merge pull request #571 from nushell/bigint
Migrated numerics to BigInt/BigDecimal
2019-09-01 22:08:48 -07:00
8a29c9e6ab Migrated numerics to BigInt/BigDecimal
This commit migrates Value's numeric types to BigInt and BigDecimal. The
basic idea is that overflow errors aren't great in a shell environment,
and not really necessary.

The main immediate consequence is that new errors can occur when
serializing Nu values to other formats. You can see this in changes to
the various serialization formats (JSON, TOML, etc.). There's a new
`CoerceInto` trait that uses the `ToPrimitive` trait from `num_traits`
to attempt to coerce a `BigNum` or `BigDecimal` into a target type, and
produces a `RangeError` (kind of `ShellError`) if the coercion fails.

Another possible future consequence is that certain performance-critical
numeric operations might be too slow. If that happens, we can introduce
specialized numeric types to help improve the performance of those
situations, based on the real-world experience.
2019-09-01 21:00:30 -07:00
abfd417430 Fix unwrap in open 2019-09-02 11:55:33 +12:00
6e0cb6b809 Merge pull request #563 from est31/field_shorthand
Adopt field init shorthand in a few places
2019-09-02 11:45:32 +12:00
8504c7a8e6 Adopt field init shorthand in a few places
Found by running 'egrep "(\b[a-zA-Z]+): \1\b" -R src'
2019-09-01 23:39:59 +02:00
8523ce3d01 Get rid of feature(crate_visibility_modifier) (see #362) 2019-09-01 21:56:17 +02:00
7d46f9e860 Another attempt to fix the zombie processes 2019-09-02 04:45:30 +12:00
a7e378d1c9 Fix unwraps in post 2019-09-01 18:44:56 +12:00
ca0c6eaf58 This commit introduces a basic help feature. We can go to it
with the `help` command to explore and list all commands available.

Enter will also try to see if the location to be entered is an existing
Nu command, if it is it will let you inspect the command under `help`.

This provides baseline needed so we can iterate on it.
2019-08-31 19:06:11 -05:00
1a67ac6102 Random fixes 2019-09-01 09:19:59 +12:00
5b7940b88c Update bson to 0.14 2019-08-31 18:47:14 +02:00
0d6b85b5bf Merge branch 'master' into post 2019-08-31 16:39:24 +12:00
ad18c7f61a Finish magic post and magic receive 2019-08-31 16:08:59 +12:00
138b5af82b Basic support for decimal numbers
This commit is more substantial than it looks: there was basically no
real support for decimals before, and that impacted values all the way
through.

I also made Size contain a decimal instead of an integer (`1.6kb` is a
reasonable thing to type), which impacted a bunch of code.

The biggest impact of this commit is that it creates many more possible
ways for valid nu types to fail to serialize as toml, json, etc. which
typically can't support the full range of Decimal (or Bigint, which I
also think we should support). This commit makes to-toml fallible, and a
similar effort is necessary for the rest of the serializations.

We also need to figure out how to clearly communicate to users what has
happened, but failing to serialize to toml seems clearly superior to me
than weird errors in basic math operations.
2019-08-30 21:05:32 -07:00
1d77595576 Merge branch 'master' into post 2019-08-31 15:12:03 +12:00
f274df6753 Merge pull request #547 from jonathandturner/expand_list_sqlite
Expand lists loaded from sqlite
2019-08-31 14:49:07 +12:00
2470e6dc24 Expand lists loaded from sqlite 2019-08-31 14:23:29 +12:00
2cde4da43f Partially fix list support 2019-08-31 13:35:53 +12:00
2cec8168c7 Merge master 2019-08-31 13:30:41 +12:00
761cc3db14 Finish up enter and save 2019-08-31 12:59:21 +12:00
3d147d1143 Add SQLite support 2019-08-30 20:54:45 -04:00
fa2c6ec227 Merge master 2019-08-31 10:13:09 +12:00
481722b80a Fix from_json to use Nothing 2019-08-30 17:34:35 -04:00
c3abb3b687 Fix unwrap 2019-08-31 07:28:10 +12:00
60bfa277d0 Experiment with async/await-enabled ps 2019-08-31 07:07:07 +12:00
9e167713b3 Add post command 2019-08-31 06:27:15 +12:00
729051fdd2 Merge pull request #407 from iamcodemaker/vi
WIP: add support for vi mode
2019-08-30 15:54:30 +12:00
b6db233c73 Start working on save 2019-08-30 03:39:16 +12:00
c87fa14fc8 Replace crate visibility identifier with pub(crate)
Result of running:

find src -name *.rs -exec sed -i 's/crate /pub(crate) /g' {} \;
2019-08-29 13:09:09 +02:00
f1e8c433c2 [from/to]tsv support. 2019-08-29 04:02:16 -05:00