コード例 #1
0
ファイル: test_defaults.py プロジェクト: M-o-a-T/asyncclick
 def cli(foo):
     assert type(foo) is float
     click.echo('FOO:[%s]' % foo)
コード例 #2
0
 def cli(f):
     click.echo(f)
コード例 #3
0
 def cmd(a, b, c):
     for arg in (a, b, c):
         click.echo(arg)
コード例 #4
0
 def foo(input):
     click.echo(input)
コード例 #5
0
 def cmd2(arg):
     click.echo('arg:' + '|'.join(arg))
コード例 #6
0
 def copy(item):
     for item in item:
         click.echo('name=%s id=%d' % item)
コード例 #7
0
 def cli(foo):
     click.echo(foo)
コード例 #8
0
 def cli(message):
     click.echo('\n'.join(message))
コード例 #9
0
 def cli(foo, bar):
     click.echo('foo=%s bar=%s' % (foo, bar))
コード例 #10
0
ファイル: naval.py プロジェクト: M-o-a-T/asyncclick
def mine_set(x, y, ty):
    """Sets a mine at a specific coordinate."""
    click.echo('Set %s mine at %s,%s' % (ty, x, y))
コード例 #11
0
ファイル: naval.py プロジェクト: M-o-a-T/asyncclick
def mine_remove(x, y):
    """Removes a mine at a specific coordinate."""
    click.echo('Removed mine at %s,%s' % (x, y))
コード例 #12
0
ファイル: naval.py プロジェクト: M-o-a-T/asyncclick
def ship_shoot(ship, x, y):
    """Makes SHIP fire to X,Y."""
    click.echo('Ship %s fires to %s,%s' % (ship, x, y))
コード例 #13
0
ファイル: naval.py プロジェクト: M-o-a-T/asyncclick
def ship_move(ship, x, y, speed):
    """Moves SHIP to the new location X,Y."""
    click.echo('Moving ship %s to %s,%s with speed %s' % (ship, x, y, speed))
コード例 #14
0
ファイル: naval.py プロジェクト: M-o-a-T/asyncclick
def ship_new(name):
    """Creates a new ship."""
    click.echo('Created ship %s' % name)
コード例 #15
0
 def cli_alt(warnings):
     click.echo(warnings)
コード例 #16
0
 def cmd(arg):
     for item in arg:
         click.echo('|'.join(item))
コード例 #17
0
 def cmd(**kwargs):
     click.echo(str(kwargs[expected]))
コード例 #18
0
 def cmd(debug):
     click.echo(debug)
コード例 #19
0
 def cli(v):
     click.echo('verbosity=%d' % v)
コード例 #20
0
 def cmd(whatever):
     click.echo(whatever)
コード例 #21
0
ファイル: test_formatting.py プロジェクト: M-o-a-T/asyncclick
 def foo(bar):
     click.echo('foo:' + bar)
コード例 #22
0
 def cmd(foo):
     click.echo(foo)
コード例 #23
0
 def cmd(arg):
     click.echo('|'.join(arg))
コード例 #24
0
 def cmd(testarg):
     click.echo(testarg)
コード例 #25
0
 def cmd(arg):
     click.echo('arg:' + arg)
コード例 #26
0
 def cmd(testoption):
     click.echo(testoption)
コード例 #27
0
 def cmd(f, files):
     for filename in files:
         click.echo(filename)
     click.echo(f)
コード例 #28
0
 def cli(warnings):
     click.echo(warnings)
コード例 #29
0
 def cmd(a):
     x, y = a
     click.echo(x + y)
コード例 #30
0
ファイル: test_defaults.py プロジェクト: M-o-a-T/asyncclick
 def cli(arg):
     for item in arg:
         click.echo('<%d|%d>' % item)