diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 595d3735a..11b57fb7d 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -284,7 +284,7 @@ You can run multiple tasks in a single invocation, for example:: $ invoke docs sdist wheel ``` -That one command will remove all superflous cache, testing, and build +That one command will remove all superfluous cache, testing, and build files, render the documentation, and build a source distribution and a wheel distribution. @@ -298,7 +298,7 @@ $ cd ~src/cmd2 $ invoke pytest ``` -If the tests are executed it means that dependencies and project are installed succesfully. +If the tests are executed it means that dependencies and project are installed successfully. You can also run the example app and see a prompt that says "(Cmd)" running the command: diff --git a/CHANGELOG.md b/CHANGELOG.md index e8dacd652..417d9b427 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -725,7 +725,7 @@ * Enhancements * Added ability to include command name placeholders in the message printed when trying to run a disabled command. * See docstring for ``disable_command()`` or ``disable_category()`` for more details. - * Added instance attributes to customize error messages without having to override methods. Theses messages can + * Added instance attributes to customize error messages without having to override methods. These messages can also be colored. * `help_error` - the error that prints when no help information can be found * `default_error` - the error that prints when a non-existent command is run @@ -862,7 +862,7 @@ * Aliases are now sorted alphabetically * The **set** command now tab completes settable parameter names * Added ``async_alert``, ``async_update_prompt``, and ``set_window_title`` functions - * These allow you to provide feedback to the user in an asychronous fashion, meaning alerts can + * These allow you to provide feedback to the user in an asynchronous fashion, meaning alerts can display when the user is still entering text at the prompt. See [async_printing.py](https://github.com/python-cmd2/cmd2/blob/master/examples/async_printing.py) for an example. * Cross-platform colored output support @@ -962,7 +962,7 @@ * New pyscript approach that provides a pythonic interface to commands in the cmd2 application. * Switch command parsing from pyparsing to custom code which utilizes shlex. * The object passed to do_* methods has changed. It no longer is the pyparsing object, it's a new Statement object, which is a subclass of ``str``. The statement object has many attributes which give you access to various components of the parsed input. If you were using anything but the string in your do_* methods, this change will require you to update your code. - * ``commentGrammers`` is no longer supported or available. Comments are C-style or python style. + * ``commentGrammars`` is no longer supported or available. Comments are C-style or python style. * Input redirection no longer supported. Use the load command instead. * ``multilineCommand`` attribute is ``now multiline_command`` * ``identchars`` is now ignored. The standardlibrary cmd uses those characters to split the first "word" of the input, but cmd2 hasn't used those for a while, and the new parsing logic parses on whitespace, which has the added benefit of full unicode support, unlike cmd or prior versions of cmd2. diff --git a/README.md b/README.md index d15d58eb8..0f9a25d6b 100755 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@
- Develper's Toolbox •
+ Developer's Toolbox •
Philosophy •
Installation •
Documentation •
@@ -153,7 +153,7 @@ Projects using cmd2
| [Poseidon](https://github.com/CyberReboot/poseidon) | Leverages software-defined networks (SDNs) to acquire and then feed network traffic to a number of machine learning techniques. | |
| [Unipacker](https://github.com/unipacker/unipacker) | Automatic and platform-independent unpacker for Windows binaries based on emulation | |
| [tomcatmanager](https://github.com/tomcatmanager/tomcatmanager) | A command line tool and python library for managing a tomcat server | |
-| [Expliot](https://gitlab.com/expliot_framework/expliot) | Internet of Things (IoT) exploitation framework | |
+| [Exploit](https://gitlab.com/expliot_framework/expliot) | Internet of Things (IoT) exploitation framework | |
| [mptcpanalyzer]() | Tool to help analyze mptcp pcaps | |
| [clanvas](https://github.com/marklalor/clanvas) | Command-line client for Canvas by Instructure | |
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index c2125c46d..8201d54b9 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -101,7 +101,7 @@ def my_choices_provider(self):
an acceptable value for these arguments.
There are times when what's being tab completed is determined by a previous
-argument on the command line. In theses cases, ArgparseCompleter can pass a
+argument on the command line. In these cases, ArgparseCompleter can pass a
dictionary that maps the command line tokens up through the one being completed
to their argparse argument name. To receive this dictionary, your
choices/completer function should have an argument called arg_tokens.
diff --git a/cmd2/transcript.py b/cmd2/transcript.py
index fdbcd0299..f4781fd99 100644
--- a/cmd2/transcript.py
+++ b/cmd2/transcript.py
@@ -205,7 +205,7 @@ def _escaped_find(regex: str, s: str, start: int, in_regex: bool) -> Tuple[str,
# escaped. We found it.
break
else:
- # check if the slash is preceeded by a backslash
+ # check if the slash is preceded by a backslash
if s[pos - 1 : pos] == '\\':
# it is.
if in_regex:
diff --git a/docs/doc_conventions.rst b/docs/doc_conventions.rst
index 6adad4c93..fc96fd582 100644
--- a/docs/doc_conventions.rst
+++ b/docs/doc_conventions.rst
@@ -59,8 +59,8 @@ Titles and Headings
-------------------
reStructuredText allows flexibility in how headings are defined. You only have
-to worry about the heirarchy of headings within a single file. Sphinx magically
-handles the intra-file heirarchy on it's own. This magic means that no matter
+to worry about the hierarchy of headings within a single file. Sphinx magically
+handles the intra-file hierarchy on it's own. This magic means that no matter
how you style titles and headings in the various files that comprise the
documentation, Sphinx will render properly structured output. To ensure we have
a similar consistency when viewing the source files, we use the following
diff --git a/docs/features/commands.rst b/docs/features/commands.rst
index 66745469e..817c843b5 100644
--- a/docs/features/commands.rst
+++ b/docs/features/commands.rst
@@ -4,7 +4,7 @@ Commands
.. _cmd: https://docs.python.org/3/library/cmd.html
``cmd2`` is designed to make it easy for you to create new commands. These
-commmands form the backbone of your application. If you started writing your
+commands form the backbone of your application. If you started writing your
application using cmd_, all the commands you have built will work when you move
to ``cmd2``. However, there are many more capabilities available in ``cmd2``
which you can take advantage of to add more robust features to your commands,
diff --git a/docs/features/help.rst b/docs/features/help.rst
index 57aa21870..b98e4164d 100644
--- a/docs/features/help.rst
+++ b/docs/features/help.rst
@@ -41,7 +41,7 @@ Providing Help
``cmd2`` makes it easy for developers of ``cmd2`` applications to provide this
help. By default, the help for a command is the docstring for the ``do_*``
method defining the command - e.g. for a command **foo**, that command is
-implementd by defining the ``do_foo`` method and the docstring for that method
+implemented by defining the ``do_foo`` method and the docstring for that method
is the help.
For commands which use one of the ``argparse`` decorators to parse arguments,
diff --git a/docs/features/hooks.rst b/docs/features/hooks.rst
index 881b4e7e5..1ae2f3e4a 100644
--- a/docs/features/hooks.rst
+++ b/docs/features/hooks.rst
@@ -171,7 +171,7 @@ object, including ``.raw`` which contains exactly what the user typed.
The hook method must return a :class:`cmd2.plugin.PostparsingData` object, and
it is very convenient to just return the object passed into the hook method.
-The hook method may modify the attributes of the object to influece the
+The hook method may modify the attributes of the object to influence the
behavior of the application. If ``params.stop`` is set to true, a fatal failure
is triggered prior to execution of the command, and the application exits.
@@ -287,7 +287,7 @@ Any postcommand hook can change the value of the ``stop`` attribute before
returning it, and the modified value will be passed to the next postcommand
hook. The value returned by the final postcommand hook will be passed to the
command finalization hooks, which may further modify the value. If your hook
-blindly returns ``False``, a prior hook's requst to exit the application will
+blindly returns ``False``, a prior hook's request to exit the application will
not be honored. It's best to return the value you were passed unless you have a
compelling reason to do otherwise.
@@ -330,7 +330,7 @@ hook. The value returned by the final command finalization hook will determine
whether the application terminates or not.
This approach to command finalization hooks can be powerful, but it can also
-cause problems. If your hook blindly returns ``False``, a prior hook's requst
+cause problems. If your hook blindly returns ``False``, a prior hook's request
to exit the application will not be honored. It's best to return the value you
were passed unless you have a compelling reason to do otherwise.
diff --git a/docs/features/scripting.rst b/docs/features/scripting.rst
index ea06371f1..bb05c460c 100644
--- a/docs/features/scripting.rst
+++ b/docs/features/scripting.rst
@@ -335,7 +335,7 @@ Developing an Advanced API
Until now the application designer has paid little attention to scripters and their needs.
Wouldn't it be nice if while creating py_scripts one did not have to parse data from ``stdout``? We can
-accomodate the weary scripter by adding one small line at the end of our ``do_*`` commands.
+accommodate the weary scripter by adding one small line at the end of our ``do_*`` commands.
``self.last_result =