✏ Fix spelling (shinny -> shiny) (#586)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
shinny -> shiny
authored by jmills · committed by GitHub · parent 606df45 · Browse files · 5 files·+8 added−8 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+8 added−8 removed
- tests:+4 added−4 removed
- other:+4 added−4 removed
Provenance
- Commit
46154f2- Tree
1a1adcd- Author
jmills <runofthemill@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
606df45
5 files changed+8 added−8 removed
modified:docs/tutorial/commands/help.md+2 added-2 removed
209 unmodified lines210 $ python main.py create --help211 212 <b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py create [OPTIONS] USERNAME </b>213 <b> </b>214- <font color="#A6E22E"><b>Create</b></font> a new <i>shinny</i> user. ✨214+ <font color="#A6E22E"><b>Create</b></font> a new <i>shiny</i> user. ✨215 This requires a <font color="#A5A5A1"><u style="text-decoration-style:single">username</u></font><font color="#A5A5A1">. </font>216 217 <font color="#A5A5A1">╭─ Arguments ───────────────────────────────────────────────────────╮</font>218 <font color="#A5A5A1">│ </font><font color="#F92672">*</font> username <font color="#F4BF75"><b>TEXT</b></font> The username to be <font color="#A6E22E">created</font> │52 unmodified lines271 $ python main.py create --help272 273 <b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py create [OPTIONS] USERNAME </b>274 <b> </b>275- <b>Create</b> a new <i>shinny</i> user. ✨275+ <b>Create</b> a new <i>shiny</i> user. ✨276 277 <font color="#F4BF75"><b> • </b></font><font color="#A5A5A1">Create a username </font>278 <font color="#F4BF75"><b> • </b></font><font color="#A5A5A1">Show that the username is created </font>279 207 unmodified linesmodified:docs_src/commands/help/tutorial004.py+1 added-1 removed
8 unmodified lines9 ..., help="The username to be [green]created[/green]"10 )11 ):12 """13- [bold green]Create[/bold green] a new [italic]shinny[/italic] user. :sparkles:13+ [bold green]Create[/bold green] a new [italic]shiny[/italic] user. :sparkles:14 15 This requires a [underline]username[/underline].16 """17 print(f"Creating user: {username}")17 unmodified linesmodified:docs_src/commands/help/tutorial005.py+1 added-1 removed
4 unmodified lines5 6 @app.command()7 def create(username: str = typer.Argument(..., help="The username to be **created**")):8 """9- **Create** a new *shinny* user. :sparkles:9+ **Create** a new *shiny* user. :sparkles:10 11 * Create a username12 13 * Show that the username is created21 unmodified linesmodified:tests/test_tutorial/test_commands/test_help/test_tutorial004.py+2 added-2 removed
12 unmodified lines13 def test_help():14 result = runner.invoke(app, ["--help"])15 assert result.exit_code == 016 assert "create" in result.output17- assert "Create a new shinny user. ✨" in result.output17+ assert "Create a new shiny user. ✨" in result.output18 assert "delete" in result.output19 assert "Delete a user with USERNAME." in result.output20 assert "Some internal utility function to create." not in result.output21 assert "Some internal utility function to delete." not in result.output1 unmodified line23 24 def test_help_create():25 result = runner.invoke(app, ["create", "--help"])26 assert result.exit_code == 027- assert "Create a new shinny user. ✨" in result.output27+ assert "Create a new shiny user. ✨" in result.output28 assert "The username to be created" in result.output29 assert "Some internal utility function to create." not in result.output30 31 29 unmodified linesmodified:tests/test_tutorial/test_commands/test_help/test_tutorial005.py+2 added-2 removed
12 unmodified lines13 def test_help():14 result = runner.invoke(app, ["--help"])15 assert result.exit_code == 016 assert "create" in result.output17- assert "Create a new shinny user. ✨" in result.output17+ assert "Create a new shiny user. ✨" in result.output18 assert "delete" in result.output19 assert "Delete a user with USERNAME." in result.output20 assert "Some internal utility function to create." not in result.output21 assert "Some internal utility function to delete." not in result.output1 unmodified line23 24 def test_help_create():25 result = runner.invoke(app, ["create", "--help"])26 assert result.exit_code == 027- assert "Create a new shinny user. ✨" in result.output27+ assert "Create a new shiny user. ✨" in result.output28 assert "The username to be created" in result.output29 assert "Learn more at the Typer docs website" in result.output30 assert "Some internal utility function to create." not in result.output31 30 unmodified lines