mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 17:39:15 +01:00
8860d8de8d
The functions for retrieving, replacing, and inserting values into values all assumed they get the complete column path as regular tagged strings. This commit changes for these to accept a tagged values instead. Basically it means we can have column paths containing strings and numbers (eg. package.authors.1) Unfortunately, for the moment all members when parsed and deserialized for a command that expects column paths of tagged values will get tagged values (encapsulating Members) as strings only. This makes it impossible to determine whether package.authors.1 package.authors."1" (meaning the "number" 1) is a string member or a number member and thus prevents to know and force the user that paths enclosed in double quotes means "retrieve the column at this given table" and that numbers are for retrieving a particular row number from a table. This commit sets in place the infraestructure needed when integer members land, in the mean time the workaround is to convert back to strings the tagged values passed from the column paths. |
||
---|---|---|
.. | ||
commands | ||
data | ||
env | ||
evaluate | ||
format | ||
parser | ||
plugins | ||
shell | ||
cli.rs | ||
commands.rs | ||
context.rs | ||
data.rs | ||
env.rs | ||
errors.rs | ||
format.rs | ||
fuzzysearch.rs | ||
git.rs | ||
lib.rs | ||
main.rs | ||
parser.rs | ||
plugin.rs | ||
prelude.rs | ||
shell.rs | ||
stream.rs | ||
traits.rs | ||
utils.rs |