Skip to content

hymkor/single2double

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDev

single2double.exe

In CMD.EXE, we have to write one-liner with \" for string literals.

cat issues.json | jq -r ". | map(\"#\"+(.number|tostring)+\" [\"+ .user.login + \"](\"+ .user.html_url + \")\") | join(\"\r\n\")"

The single2double.exe replaces ' with " on the command line and executes it.

cat issues.json | single2double.exe jq -r ". | map('#'+(.number|tostring)+' ['+ .user.login + ']('+ .user.html_url + ')') | join('\r\n')"

Install

Download the binary package from Releases and extract the executable.

via go install

go install github.com/hymkor/single2double@latest

via scoop-installer

scoop install https://raw.githubusercontent.com/hymkor/single2double/master/single2double.json

or

scoop bucket add hymkor https://github.com/hymkor/scoop-bucket
scoop install single2double

About

Replace single-quotations in arguments of command line to backslashes and double quotations

Resources

License

Stars

Watchers

Forks

Contributors