Skip to content
Myr

Don't use uname in examples. This fixes #268

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 64f57fe · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/options.rst+3 added-3 removed
116 unmodified lines
117118 @click.command()119 @click.option('--shout/--no-shout', default=False)120 def info(shout):121 rv = os.uname()[0]121 rv = sys.platform122 if shout:123 rv = rv.upper() + '!!!!111'124 click.echo(rv)125
13 unmodified lines
139140 @click.command()141 @click.option('--shout', is_flag=True)142 def info(shout):143 rv = os.uname()[0]143 rv = sys.platform144 if shout:145 rv = rv.upper() + '!!!!111'146 click.echo(rv)147
36 unmodified lines
184 @click.option('--upper', 'transformation', flag_value='upper',185 default=True)186 @click.option('--lower', 'transformation', flag_value='lower')187 def info(transformation):188 click.echo(getattr(os.uname()[0], transformation)())188 click.echo(getattr(sys.platform, transformation)())189190And on the command line:191192.. click:run::
423 unmodified lines