Skip to content

🌞 [Other]: Opinion about 2.0.2 #7

@LazyRichard

Description

Description

First of all, I really appreciate the review of my MR.

However, I think the change in 2.0.2 makes no sense.

The purpose of this #4 was not to base64 encode each element of the array one by one.

As you know, when using the Get-Content function and a pipe, the file is parsed and piped with string array based on NewLine.

That's why I needed array support and I wanted to encode them as a single base64. because this is how linux base64 utility works.

If you need line-by-line results, I think it's better to just use a powershell loop.

Let's assume we have a file like the one below. The file is named test.txt.

hello some world!

here is my decoded content

Using the Linux base64 utility, we can get a single encoded string from this file

$ cat test.txt | base64
aGVsbG8gc29tZSB3b3JsZCEKCmhlcmUgaXMgbXkgZGVjb2RlZCBjb250ZW50Cg==

This is how it should be encoded

But with your utility it is output as an array

I wanted a single base64 encoding of the file output.

Please take a look at #4 test code again.

Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions