ZupIT / ritchie-cli

Ritchie CLI is an open-source tool that allows to create, store and share any kind of automation, executing them through command lines, to run operations or start workflows ⚙️ 🖥 💡
https://docs.ritchiecli.io
Apache License 2.0
559 stars 104 forks source link

Change the input flags delimiter to support Windows for double quotes #871

Open fabianofernandeszup opened 3 years ago

fabianofernandeszup commented 3 years ago

What happened: In windows, input flags do not accept single quotes, just double quotes or without quotes for words without spaces. On Linux and Mac it is possible to use single and double quotes.

My suggestion is to standardize with double quotes to suit all systems equally.

Error Print image

What you expected to happen:

These are the only changes needed.

How to reproduce it (as minimally and precisely as possible):

Run any formula with input flags in the CMD on windows using single quotes and you will see the error.

Environment:

henriquemoraeszup commented 3 years ago

@fabianofernandeszup can you ensure that double quotes would run in any kind of command prompt? Is there some prompt in which double quotes would not work?

fabianofernandeszup commented 3 years ago

An issue will be opened in cobra related to this subject: https://github.com/spf13/cobra