mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 06:56:19 +00:00
autopushed
This commit is contained in:
@@ -40,6 +40,10 @@ def is_prime(n):
|
|||||||
# click.echo(f"Sieve: {is_prime}.")
|
# click.echo(f"Sieve: {is_prime}.")
|
||||||
return is_prime[n]
|
return is_prime[n]
|
||||||
|
|
||||||
|
class AgoraCmd(click.Command):
|
||||||
|
def format_help(self, ctx, formatter):
|
||||||
|
click.echo("Usage: Visit anagora.org/foo to execute e.g. bin/foo.py, exec/foo.py from your garden.")
|
||||||
|
|
||||||
@click.command(cls=AgoraCommand)
|
@click.command(cls=AgoraCommand)
|
||||||
@click.argument('n', type=click.INT)
|
@click.argument('n', type=click.INT)
|
||||||
def prime(n):
|
def prime(n):
|
||||||
|
|||||||
Reference in New Issue
Block a user