Creating a shell command line application with Python and Click
问题 I'm using click (http://click.pocoo.org/3/) to create a command line application, but I don't know how to create a shell for this application. Suppose I'm writing a program called test and I have commands called subtest1 and subtest2 I was able to make it work from terminal like: $ test subtest1 $ test subtest2 But what I was thinking about is a shell, so I could do: $ test >> subtest1 >> subtest2 Is this possible with click? 回答1: This is not impossible with click, but there's no built-in