junyu-w / corgi

Corgi is a command-line workflow manager that helps with your repetitive command usages by organizing them into reusable snippet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi line commands

plmuninn opened this issue · comments

Corgi is not supporting multi line commands during corgi new functionality. For example pasting command like:

docker run -p 2181:2181 -p 9092:9092 \
--env ADVERTISED_HOST="172.17.0.1" \
--env ADVERTISED_PORT=9092 \
--env NUM_PARTITIONS="2" \
--env TOPICS="topic1,topic2" \
spotify/kafka

will end with only first line docker run -p 2181:2181 -p 9092:9092

This seems to be a restriction posed by the input reading library that corgi uses, haven't found a solution yet but I will look into it

raised question in chzyer/readline#147, still waiting for their response

@onewebpro Thanks for looking into it! And I've merged changes to develop and will be in the next release, if you would like to try it out please follow the instruction to build the project from scratch.

v0.2.4 has been released with the requested feature!