piping

Call another click command from a click command

Call another click command from a click command Question: I want to use some useful functions as commands. For that I am testing the click library. I defined my three original functions then decorated as click.command: import click import os, sys @click.command() @click.argument(‘content’, required=False) @click.option(‘–to_stdout’, default=True) def add_name(content, to_stdout=False): if not content: content = ”.join(sys.stdin.readlines()) …

Total answers: 4