nushell/crates
Stefan Holderbach bbf0b45c59
Update internal use of decimal to float (#10333)
# Description
We made the decision that our floating point type should be referred to
as `float` over `decimal`.
Commands were updated by #9979 and #10320

Now make the internal codebase consistent in referring to this data type
as `float`.

Work for #10332

# User-Facing Changes

`decimal` has been removed as a type name/symbol. 

Instead of 
```nushell
def foo [bar: decimal] decimal -> decimal {}
```
use 
```nushell
def foo [bar: float] float -> float {}
```

Potential effect of `SyntaxShape`'s `Display` implementation now also
referring to `float` instead of `decimal`

# Details
- Rename `SyntaxShape::Decimal` to `Float`
- Update `Display for SyntaxShape` to `float`
- Update error message + fn name in dataframe code
- Fix docs in command examples
- Rename tests that are float specific
- Update doccomment on `SyntaxShape`
- Update comment in script

# Tests + Formatting
Updates the names of some tests
2023-09-13 23:53:55 +02:00
..
nu-cli add helper switch to move cursor to end of buffer (#10354) 2023-09-13 12:44:09 -05:00
nu-cmd-base Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
nu-cmd-dataframe Update internal use of decimal to float (#10333) 2023-09-13 23:53:55 +02:00
nu-cmd-extra Invert &Options to Option<&T> (#10315) 2023-09-13 07:00:58 +08:00
nu-cmd-lang Allow parse-time evaluation of if (#10326) 2023-09-12 21:35:47 +03:00
nu-color-config rename the types with spaces in them to use - (#9929) 2023-09-06 13:22:12 -05:00
nu-command Update internal use of decimal to float (#10333) 2023-09-13 23:53:55 +02:00
nu-engine Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00
nu-explore Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00
nu-glob bump nushell to dev version 0.84.1 (#10101) 2023-08-23 15:23:27 -05:00
nu-json Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00
nu-parser Update internal use of decimal to float (#10333) 2023-09-13 23:53:55 +02:00
nu-path Support Termux (#10013) 2023-08-28 09:53:25 +03:00
nu-plugin Invert &Options to Option<&T> (#10315) 2023-09-13 07:00:58 +08:00
nu-pretty-hex Remove Cargo.lock in subcrates (#10280) 2023-09-09 00:45:43 +02:00
nu-protocol Update internal use of decimal to float (#10333) 2023-09-13 23:53:55 +02:00
nu-std Update internal use of decimal to float (#10333) 2023-09-13 23:53:55 +02:00
nu-system Remove Cargo.lock in subcrates (#10280) 2023-09-09 00:45:43 +02:00
nu-table nu-table: Strip custom color in the header when used on border (#10357) 2023-09-13 12:11:00 -05:00
nu-term-grid bump nushell to dev version 0.84.1 (#10101) 2023-08-23 15:23:27 -05:00
nu-test-support Deref &String arguments to &str where appropriate (#10321) 2023-09-12 14:06:56 +08:00
nu-utils Make cursor_shape optional (#10289) 2023-09-09 13:42:36 -05:00
nu_plugin_custom_values Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
nu_plugin_example Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
nu_plugin_formats Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
nu_plugin_gstat Bump git2 from 0.17.2 to 0.18.0 (#10207) 2023-09-04 21:10:25 +00:00
nu_plugin_inc Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
nu_plugin_python remove vectorize_over_list from python plugin (#9905) 2023-08-03 16:46:48 +02:00
nu_plugin_query Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.