Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ create ``greet_command.py`` and add the following to it:

.. code-block:: python

from cleo import Command
from cleo.commands.command import Command


class GreetCommand(Command):
Expand Down Expand Up @@ -40,7 +40,7 @@ an ``Application`` and adds commands to it:
#!/usr/bin/env python

from greet_command import GreetCommand
from cleo import Application
from cleo.application import Application

application = Application()
application.add(GreetCommand())
Expand Down Expand Up @@ -406,7 +406,7 @@ console:

import pytest

from cleo import Application
from cleo.application import Application
from cleo.testers.command_tester import CommandTester

def test_execute(self):
Expand All @@ -430,7 +430,7 @@ as a string to the ``CommandTester.execute()`` method:

import pytest

from cleo import Application
from cleo.application import Application
from cleo.testers.command_tester import CommandTester

def test_execute(self):
Expand Down
2 changes: 1 addition & 1 deletion docs/single_command_tool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it is possible to remove this need by using `default()` when adding a command:

.. code-block:: python

from cleo import Application
from cleo.application import Application

command = GreetCommand()

Expand Down
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ built-in options as well as a couple of built-in commands for Cleo.
#!/usr/bin/env python
# application.py

from cleo import Application
from cleo.application import Application

application = Application()
# ...
Expand Down
1 change: 1 addition & 0 deletions news/531.docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed import paths in documentation examples to match the public API.
Loading