Commit Graph

1132 Commits

Author SHA1 Message Date
Yehuda Katz
fd715e1775
Merge pull request #596 from Porges/improve-pipeline-parsing
Improve parsing of pipelines, require pipes between segments
2019-09-04 09:41:49 -07:00
Jonathan Turner
0a9897c5ca Move us away from mixing OOP and spreadsheet to just spreadsheet 2019-09-05 04:29:49 +12:00
George Pollard
60212611e5
Allow leading space before head of pipeline 2019-09-05 04:13:07 +12:00
George Pollard
6034de641a
Improve parsing of pipelines, require pipes
At the moment the pipeline parser does not enforce
that there must be a pipe between each part of the pipeline,
which can lead to confusing behaviour or misleading errors.
2019-09-05 03:30:51 +12:00
Jonathan Turner
4591397fa3
Update README.md 2019-09-04 19:20:14 +12:00
Jonathan Turner
6dad1c9be8
Merge pull request #592 from jonathandturner/table_to
Covert to_* commands to work on whole table
2019-09-04 19:16:23 +12:00
Jonathan Turner
479f0a566e Covert to_* commands to work on whole table 2019-09-04 18:48:40 +12:00
Jonathan Turner
7a5fc82ee0
Merge pull request #591 from pmeredit/topic/save_binary
Topic/save binary
2019-09-04 15:07:54 +12:00
Patrick Meredith
05e858fa94 Add test 2019-09-03 22:37:26 -04:00
Patrick Meredith
1f05e98965 Refactor to make save.rs readable 2019-09-03 22:21:37 -04:00
Patrick Meredith
ab48d3a3f2 Support binary save 2019-09-03 21:50:23 -04:00
Jonathan Turner
c6c4d4ddb1
Merge pull request #589 from jankoprowski/eof
Stop printing CTRL-D on EOF
2019-09-04 08:43:18 +12:00
Jonathan Turner
a2b3e4c9d7
Merge pull request #588 from jankoprowski/documentation
Mention pkg-config package in installation instruction
2019-09-04 08:42:48 +12:00
Jan Koprowski
ab97459d0e Stop printing CTRL-D on EOF 2019-09-03 21:40:42 +02:00
Jan Koprowski
5b706599e9 Mention pkg-config package in installation instruction
Ubuntu distributions does not came with pkg-config by default.
OpenSSL package's documentation mention pkg-config as requirement:
https://docs.rs/openssl/0.10.24/openssl/#automatic
2019-09-03 20:29:22 +02:00
Andrés N. Robalino
a2700308a7
Merge pull request #584 from androbtech/valueshell-ls
ls is aware of paths given to list when entered files/values.
2019-09-03 05:54:08 -05:00
Andrés N. Robalino
3256b7adb3 if path to ls given that does not exist, report the error. 2019-09-03 05:24:04 -05:00
Andrés N. Robalino
1d0ed7e957 ls lists contents of value entered with or without path given. 2019-09-03 05:17:44 -05:00
Andrés N. Robalino
68cdeaf8ac
Merge pull request #583 from androbtech/help-refinement
Help refinement.
2019-09-03 05:02:15 -05:00
Andrés N. Robalino
b031d4cd77 can view list of commands for details. 2019-09-03 04:36:23 -05:00
Andrés N. Robalino
030d73147e can view help for a given command by entering a command. 2019-09-03 04:05:52 -05:00
Andrés N. Robalino
a449d2c005 If path to cd given. Report the error with the path given. 2019-09-03 03:49:20 -05:00
Andrés N. Robalino
6a8dddedc3
Merge pull request #582 from androbtech/cd-valueshell
cd can be aware inside a value entered.
2019-09-03 03:08:21 -05:00
Andrés N. Robalino
b0a02518f9 cd can be awared inside a value entered. 2019-09-03 02:43:37 -05:00
Jonathan Turner
9e3d14cbbf
Merge pull request #581 from jonathandturner/fetch
Split fetch command away from open
2019-09-03 18:33:23 +12:00
Jonathan Turner
8a9cdcab17 Split fetch command away from open 2019-09-03 18:04:46 +12:00
Jonathan Turner
7bd2fa1bfc
Merge pull request #580 from est31/trailing_spaces
Trim trailing whitespace and set it in editorconfig
2019-09-03 16:25:41 +12:00
Jonathan Turner
1464feaab7
Merge pull request #579 from est31/serde_instead_of_specialization
Use serde instead of specialization
2019-09-03 16:24:55 +12:00
est31
cf0efb811e Trim trailing whitespace and set it in editorconfig 2019-09-03 02:52:52 +02:00
est31
35d576f540 Remove use of specialization 2019-09-03 02:13:41 +02:00
est31
225ef8e75d Use serde to deserialize the remaining things 2019-09-03 02:10:48 +02:00
est31
cc8872b4ee Use serde to deserialize Tagged<Value> 2019-09-03 01:41:26 +02:00
est31
9ba2e75ac1 Move code into separate visit function 2019-09-03 01:32:54 +02:00
est31
e8880a1a57 Deserialize Block using serde 2019-09-02 22:30:51 +02:00
est31
9b3a561e83 Small refactor 2019-09-02 22:06:46 +02:00
est31
d5494e58a4 ExtractType doesn't have to be implemented for Option any more 2019-09-02 21:12:09 +02:00
Jonathan Turner
4a00887e9d
Merge pull request #578 from jonathandturner/fix_577
Fix line completion for extended chars
2019-09-03 07:09:26 +12:00
Jonathan Turner
95feb1ff16 Fix line completion for extended chars 2019-09-03 06:06:25 +12:00
Jonathan Turner
3d912a2c1d
Merge pull request #575 from nushell/remove-unused-code
Remove unused code
2019-09-02 20:24:18 +12:00
Andrés N. Robalino
2cb290b77b
Merge pull request #573 from androbtech/embed
can embed a new field to the table.
2019-09-02 01:14:06 -05:00
Yehuda Katz
7fa09f59c2 Remove unused code
Closes #467
2019-09-01 23:11:05 -07:00
Yehuda Katz
246c9c06dc
Merge pull request #569 from est31/serde_instead_of_specialization
Remove use of ExtractType in deserialize_any
2019-09-01 22:39:13 -07:00
Yehuda Katz
9773f8fbab
Merge pull request #572 from nushell/bigint
Migrated numerics to BigInt/BigDecimal
2019-09-01 22:39:01 -07:00
Andrés N. Robalino
9488c41dcd can embed a new field to the table 2019-09-02 00:37:13 -05:00
Yehuda Katz
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
Yehuda Katz
3d5e31c55d
Merge pull request #571 from nushell/bigint
Migrated numerics to BigInt/BigDecimal
2019-09-01 22:08:48 -07:00
Yehuda Katz
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
Jonathan Turner
510ecaa77b
Merge pull request #567 from sharksforarms/crates-io-badge
Add crates.io badge
2019-09-02 14:48:38 +12:00
est31
113c2c380f deserialize_any isn't used any more 2019-09-02 04:07:02 +02:00
est31
bbde86c20d Use serde to deserialize bare bools
There are still tagged bools in use so we can't
remove the ExtractType implementation.
2019-09-02 03:45:00 +02:00