1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-31 14:17:45 +00:00

fix: remove now unecessary -b flag (#977)

The `-b`, that outputs the value as binary, has been removed as it is
now the default behaviour.
```sh
"U29tZSBEYXRh" | decode base64                                                                                                                                        2024-10-20 20:56:15 
Length: 9 (0x9) bytes | printable whitespace ascii_other non_ascii
00000000:   53 6f 6d 65  20 44 61 74  61                         Some Data
```
Docs: https://www.nushell.sh/commands/docs/decode_base64.html
This commit is contained in:
Antoine Sébert 2024-10-20 21:29:26 +02:00 committed by GitHub
parent fa12d3e905
commit 96c7e61141
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ def --env b64_encode [fn] {
}
def --env b64_decode [fn] {
$fn | decode base64 -b
$fn | decode base64
}
def print_image [