sclevine / yj

CLI - Convert between YAML, TOML, JSON, and HCL. Preserves map order.
Apache License 2.0
975 stars 50 forks source link

YJ 5.1.0 not work on Windows 11 #44

Open tschinkes opened 6 months ago

tschinkes commented 6 months ago

I downloaded the compiled Version of YJ.EXE for Windows and run it on my system. VJ starts but nothing happends, only black screen on my command screen. I allowed the exe for run and start something on my system.

square-foot commented 3 months ago

It works on my Windows 11... I think what's happening in your case is that if you run YJ.EXE only on its own, it is waiting for you to enter data via the console itself. Instead, first open the CMD window (the black screen) separately by running the "cmd" command. change the folder to the folder where YJ.EXE is existing. Then run the following command inside that command screen

yj -h

That will display the help.

For example; if you want to convert a file abc.json to TOML you would need to give the following command

yj -jt <abc.json >abc.toml

The "<" is a redirection operator for input... it means it will accept the data inside abc.json and ">" means it will output the converted data into abc.toml