mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 18:15:04 +02:00
Fix signatures for cellpath access of records (#9793)
# Description The same procedure as for #9778 repeated for records. # User-Facing Changes Commands that directly supported applying their work directly to record fields via cell paths, that worked before #9680 will now work again # Tests + Formatting Tried to limit the need to add new `.allow_variants_without_examples()` by adjusting or adding tests to also use some records with access.
This commit is contained in:
committed by
GitHub
parent
f8d325dbfe
commit
d9230a76f3
@ -27,6 +27,7 @@ impl Command for DecodeBase64 {
|
||||
Type::List(Box::new(Type::Binary)),
|
||||
),
|
||||
(Type::Table(vec![]), Type::Table(vec![])),
|
||||
(Type::Record(vec![]), Type::Record(vec![])),
|
||||
])
|
||||
.vectorizes_over_list(true)
|
||||
.allow_variants_without_examples(true)
|
||||
|
@ -33,6 +33,7 @@ impl Command for EncodeBase64 {
|
||||
Type::List(Box::new(Type::String)),
|
||||
),
|
||||
(Type::Table(vec![]), Type::Table(vec![])),
|
||||
(Type::Record(vec![]), Type::Record(vec![])),
|
||||
])
|
||||
.vectorizes_over_list(true)
|
||||
.allow_variants_without_examples(true)
|
||||
|
Reference in New Issue
Block a user