Skip to content

Commit c409098

Browse files
committed
Fixed spelling errors.
1 parent 15c2881 commit c409098

21 files changed

+69
-72
lines changed

.github/CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ You can run multiple tasks in a single invocation, for example::
284284
$ invoke docs sdist wheel
285285
```
286286

287-
That one command will remove all superflous cache, testing, and build
287+
That one command will remove all superfluous cache, testing, and build
288288
files, render the documentation, and build a source distribution and a
289289
wheel distribution.
290290

@@ -298,7 +298,7 @@ $ cd ~src/cmd2
298298
$ invoke pytest
299299
```
300300

301-
If the tests are executed it means that dependencies and project are installed succesfully.
301+
If the tests are executed it means that dependencies and project are installed successfully.
302302

303303
You can also run the example app and see a prompt that says "(Cmd)" running the command:
304304

CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@
725725
* Enhancements
726726
* Added ability to include command name placeholders in the message printed when trying to run a disabled command.
727727
* See docstring for ``disable_command()`` or ``disable_category()`` for more details.
728-
* Added instance attributes to customize error messages without having to override methods. Theses messages can
728+
* Added instance attributes to customize error messages without having to override methods. These messages can
729729
also be colored.
730730
* `help_error` - the error that prints when no help information can be found
731731
* `default_error` - the error that prints when a non-existent command is run
@@ -862,7 +862,7 @@
862862
* Aliases are now sorted alphabetically
863863
* The **set** command now tab completes settable parameter names
864864
* Added ``async_alert``, ``async_update_prompt``, and ``set_window_title`` functions
865-
* These allow you to provide feedback to the user in an asychronous fashion, meaning alerts can
865+
* These allow you to provide feedback to the user in an asynchronous fashion, meaning alerts can
866866
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)
867867
for an example.
868868
* Cross-platform colored output support
@@ -962,7 +962,7 @@
962962
* New pyscript approach that provides a pythonic interface to commands in the cmd2 application.
963963
* Switch command parsing from pyparsing to custom code which utilizes shlex.
964964
* 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.
965-
* ``commentGrammers`` is no longer supported or available. Comments are C-style or python style.
965+
* ``commentGrammars`` is no longer supported or available. Comments are C-style or python style.
966966
* Input redirection no longer supported. Use the load command instead.
967967
* ``multilineCommand`` attribute is ``now multiline_command``
968968
* ``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.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
<p align="center">
11-
<a href="#the-developers-toolbox">Develper's Toolbox</a> •
11+
<a href="#the-developers-toolbox">Developer's Toolbox</a> •
1212
<a href="#philosophy">Philosophy</a> •
1313
<a href="#installation">Installation</a> •
1414
<a href="#documentation">Documentation</a> •

cmd2/argparse_custom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def my_choices_provider(self):
101101
an acceptable value for these arguments.
102102
103103
There are times when what's being tab completed is determined by a previous
104-
argument on the command line. In theses cases, ArgparseCompleter can pass a
104+
argument on the command line. In these cases, ArgparseCompleter can pass a
105105
dictionary that maps the command line tokens up through the one being completed
106106
to their argparse argument name. To receive this dictionary, your
107107
choices/completer function should have an argument called arg_tokens.

cmd2/transcript.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _escaped_find(regex: str, s: str, start: int, in_regex: bool) -> Tuple[str,
205205
# escaped. We found it.
206206
break
207207
else:
208-
# check if the slash is preceeded by a backslash
208+
# check if the slash is preceded by a backslash
209209
if s[pos - 1 : pos] == '\\':
210210
# it is.
211211
if in_regex:

docs/doc_conventions.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ Titles and Headings
5959
-------------------
6060

6161
reStructuredText allows flexibility in how headings are defined. You only have
62-
to worry about the heirarchy of headings within a single file. Sphinx magically
63-
handles the intra-file heirarchy on it's own. This magic means that no matter
62+
to worry about the hierarchy of headings within a single file. Sphinx magically
63+
handles the intra-file hierarchy on it's own. This magic means that no matter
6464
how you style titles and headings in the various files that comprise the
6565
documentation, Sphinx will render properly structured output. To ensure we have
6666
a similar consistency when viewing the source files, we use the following

docs/features/commands.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Commands
44
.. _cmd: https://docs.python.org/3/library/cmd.html
55

66
``cmd2`` is designed to make it easy for you to create new commands. These
7-
commmands form the backbone of your application. If you started writing your
7+
commands form the backbone of your application. If you started writing your
88
application using cmd_, all the commands you have built will work when you move
99
to ``cmd2``. However, there are many more capabilities available in ``cmd2``
1010
which you can take advantage of to add more robust features to your commands,
@@ -222,5 +222,3 @@ to:
222222

223223
- Define commands in separate CommandSet modules
224224
- Load or unload commands at runtime
225-
226-

docs/features/help.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Providing Help
4141
``cmd2`` makes it easy for developers of ``cmd2`` applications to provide this
4242
help. By default, the help for a command is the docstring for the ``do_*``
4343
method defining the command - e.g. for a command **foo**, that command is
44-
implementd by defining the ``do_foo`` method and the docstring for that method
44+
implemented by defining the ``do_foo`` method and the docstring for that method
4545
is the help.
4646

4747
For commands which use one of the ``argparse`` decorators to parse arguments,

docs/features/hooks.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ object, including ``.raw`` which contains exactly what the user typed.
171171

172172
The hook method must return a :class:`cmd2.plugin.PostparsingData` object, and
173173
it is very convenient to just return the object passed into the hook method.
174-
The hook method may modify the attributes of the object to influece the
174+
The hook method may modify the attributes of the object to influence the
175175
behavior of the application. If ``params.stop`` is set to true, a fatal failure
176176
is triggered prior to execution of the command, and the application exits.
177177

@@ -287,7 +287,7 @@ Any postcommand hook can change the value of the ``stop`` attribute before
287287
returning it, and the modified value will be passed to the next postcommand
288288
hook. The value returned by the final postcommand hook will be passed to the
289289
command finalization hooks, which may further modify the value. If your hook
290-
blindly returns ``False``, a prior hook's requst to exit the application will
290+
blindly returns ``False``, a prior hook's request to exit the application will
291291
not be honored. It's best to return the value you were passed unless you have a
292292
compelling reason to do otherwise.
293293

@@ -330,7 +330,7 @@ hook. The value returned by the final command finalization hook will determine
330330
whether the application terminates or not.
331331

332332
This approach to command finalization hooks can be powerful, but it can also
333-
cause problems. If your hook blindly returns ``False``, a prior hook's requst
333+
cause problems. If your hook blindly returns ``False``, a prior hook's request
334334
to exit the application will not be honored. It's best to return the value you
335335
were passed unless you have a compelling reason to do otherwise.
336336

docs/features/scripting.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Developing an Advanced API
335335

336336
Until now the application designer has paid little attention to scripters and their needs.
337337
Wouldn't it be nice if while creating py_scripts one did not have to parse data from ``stdout``? We can
338-
accomodate the weary scripter by adding one small line at the end of our ``do_*`` commands.
338+
accommodate the weary scripter by adding one small line at the end of our ``do_*`` commands.
339339

340340
``self.last_result = <value>``
341341

@@ -446,7 +446,7 @@ app.py::
446446
self._status_cache[args.name] = status
447447

448448
self.poutput(
449-
f"Build {args.name.upper()} successfuly stared with id : {status.id}"
449+
f"Build {args.name.upper()} successfully stared with id : {status.id}"
450450
)
451451
self.last_result = status
452452

@@ -496,7 +496,7 @@ The below is a possible solution via pyscript::
496496

497497
#error checking
498498
if not result:
499-
print("Unable to determin status")
499+
print("Unable to determine status")
500500
break
501501

502502
build_status = result.data

docs/features/settings.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ show all settings and to modify the value of any setting.
2323
allow_style
2424
~~~~~~~~~~~
2525

26-
Output generated by ``cmd2`` programs may contain ANSI escape seqences which
26+
Output generated by ``cmd2`` programs may contain ANSI escape sequences which
2727
instruct the terminal to apply colors or text styling (i.e. bold) to the
2828
output. The ``allow_style`` setting controls the behavior of these escape
2929
sequences in output generated with any of the following methods:

docs/migrating/why.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ Next Steps
7777
----------
7878

7979
In addition to the features you get with no additional work, ``cmd2`` offers a
80-
broad range of additional capabilties which can be easily added to your
80+
broad range of additional capabilities which can be easily added to your
8181
application. :ref:`migrating/next_steps:Next Steps` has some ideas of where
8282
you can start, or you can dig in to all the :ref:`features/index:Features`.

docs/testing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you need to mock anything in your cmd2 application, and most specifically in
3030
sub-classes of :class:`~cmd2.Cmd` or
3131
:class:`~cmd2.command_definition.CommandSet`, you must use `Autospeccing
3232
<python_mock_autospeccing_>`_, `spec=True <python_mock_patch_>`_, or whatever
33-
equivalant is provided in the mocking library you're using.
33+
equivalent is provided in the mocking library you're using.
3434

3535
In order to automatically load functions as commands cmd2 performs a number of
3636
reflection calls to look up attributes of classes defined in your cmd2

plugins/template/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ required for two reasons:
7878

7979
### Add commands
8080

81-
Your plugin can add user visable commands. You do it the same way in a plugin
81+
Your plugin can add user visible commands. You do it the same way in a plugin
8282
that you would in a `cmd2.Cmd` app:
8383

8484
```python
@@ -197,7 +197,7 @@ You can run multiple tasks in a single invocation, for example:
197197
$ invoke clean docs sdist wheel
198198
```
199199

200-
That one command will remove all superflous cache, testing, and build
200+
That one command will remove all superfluous cache, testing, and build
201201
files, render the documentation, and build a source distribution and a
202202
wheel distribution.
203203

readme_files/shoutout.txt

+39-40
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Name:
1+
Name:
22
Source Code:
3-
Status:
4-
Description:
5-
Genre:
3+
Status:
4+
Description:
5+
Genre:
66

77

88

@@ -12,85 +12,84 @@ Status: Active
1212
Description: Counterfit is a command-line tool and generic automation layer for assessing the security of machine learning systems.
1313
Genre: Security
1414

15-
Name: MQTT-Pwn
15+
Name: MQTT-Pwn
1616
Source Code: https://github.com/akamai-threat-research/mqtt-pwn
17-
Status: Stale
18-
Description: MQTT-PWN intends to be a one-stop-shop for IoT Broker penetration-testing and security assessment operations
17+
Status: Stale
18+
Description: MQTT-PWN intends to be a one-stop-shop for IoT Broker penetration-testing and security assessment operations
1919
Genre: Security
2020

2121
Name: OpenBeacon2
2222
Source Code: https://github.com/etherkit/OpenBeacon2
2323
Description: Commandline tool for interfacing with hardware in the [OpenBeacon](https://www.openbeacon.org/) environment.
24-
Genre: Utility
24+
Genre: Utility
2525

2626
Name: GreenWaves-Technologies/gap_sdk
2727
Source Code: https://github.com/GreenWaves-Technologies/gap_sdk
28-
Status: Active
29-
Description: GAP SDK allows you to compile and execute applications on the GAP IoT Application Processor.
28+
Status: Active
29+
Description: GAP SDK allows you to compile and execute applications on the GAP IoT Application Processor.
3030
Genre: Utility, IoT
3131

32-
Name: JSShell
32+
Name: JSShell
3333
Source Code: https://github.com/Den1al/JSShell
34-
Status: Unknown
35-
Description: An interactive multi-user web based javascript shell.
36-
Genre: Utility, Web
34+
Status: Unknown
35+
Description: An interactive multi-user web based javascript shell.
36+
Genre: Utility, Web
3737

3838

39-
Name: pyOS
39+
Name: pyOS
4040
Source Code: https://github.com/muhrin/pyos
41-
Status: Active
42-
Description: A fresh way to interact with your python objects as though they were files on your filesystem.
43-
Genre: ????
41+
Status: Active
42+
Description: A fresh way to interact with your python objects as though they were files on your filesystem.
43+
Genre: ????
4444

45-
Name: darkcode357/thg-framework
45+
Name: darkcode357/thg-framework
4646
Source Code: https://github.com/darkcode357/thg-framework
4747
Status: Inactive
4848
Description: THG is a framework for security testing and ctf games, but it can be used as a library for exploit development.
49-
Genre: Security
49+
Genre: Security
5050

5151

52-
Name: qsecure-labs/Overloard
52+
Name: qsecure-labs/Overloard
5353
Source Code: https://github.com/qsecure-labs/overlord
54-
Status: Active
55-
Description: Overlord provides a python-based console CLI which is used to build Red Teaming infrastructure in an automated way.
56-
Genre: Security
54+
Status: Active
55+
Description: Overlord provides a python-based console CLI which is used to build Red Teaming infrastructure in an automated way.
56+
Genre: Security
5757

5858

59-
Name: seemoo-lab/internalblue
59+
Name: seemoo-lab/internalblue
6060
Source Code: https://github.com/seemoo-lab/internalblue
61-
Status: Active
61+
Status: Active
6262
Description: Bluetooth experimentation framework for Broadcom and Cypress chips.
63-
Genre: utility
63+
Genre: utility
6464

6565
Name: icl-rocketry/Avionics
6666
Source Code: https://github.com/icl-rocketry/Avionics
67-
Status: Active
68-
Description: The main repository for hardware and software assosciated with the Ricardo Avionics Ecosystem.
69-
Genre: Utility
67+
Status: Active
68+
Description: The main repository for hardware and software associated with the Ricardo Avionics Ecosystem.
69+
Genre: Utility
7070

7171

7272
Name: jonny1102/nmap-parse
7373
Source Code: https://github.com/jonny1102/nmap-parse
74-
Status: Inactive
75-
Description: Command line nmap XML parser
76-
Genre: Security
74+
Status: Inactive
75+
Description: Command line nmap XML parser
76+
Genre: Security
7777

7878
Name: cybiere/baboossh
7979
Source Code: https://github.com/cybiere/baboossh
8080
Status: Active
81-
Description:SSH spreading made easy for red teams in a hurry
82-
Genre: Security
81+
Description:SSH spreading made easy for red teams in a hurry
82+
Genre: Security
8383

8484
Name: qilingframework/qiling
8585
Source Code: https://github.com/qilingframework/qiling
86-
Status: Active
86+
Status: Active
8787
Description: Qiling Advanced Binary Emulation Framework
88-
Genre: Security
88+
Genre: Security
8989

9090

9191
Name: JohnHammond/katana
9292
Source Code: https://github.com/JohnHammond/katana
93-
Status: Active
93+
Status: Active
9494
Description: Katana - Automatic CTF Challenge Solver in Python3
95-
Genre: Security
96-
95+
Genre: Security

tests/test_argparse.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def do_test_subcmd_decorator(self, args: argparse.Namespace):
312312

313313
@cmd2.as_subcommand_to('test_subcmd_decorator', 'subcmd', subcmd_parser, help=subcmd_parser.description.lower())
314314
def subcmd_func(self, args: argparse.Namespace):
315-
# Make sure printing the Namespace works. The way we originally added cmd2_hander to it resulted in a RecursionError.
315+
# Make sure printing the Namespace works. The way we originally added cmd2_handler to it resulted in a RecursionError.
316316
self.poutput(args)
317317

318318
helpless_subcmd_parser = cmd2.Cmd2ArgumentParser(add_help=False, description="A subcommand with no help")
@@ -321,7 +321,7 @@ def subcmd_func(self, args: argparse.Namespace):
321321
'test_subcmd_decorator', 'helpless_subcmd', helpless_subcmd_parser, help=helpless_subcmd_parser.description.lower()
322322
)
323323
def helpless_subcmd_func(self, args: argparse.Namespace):
324-
# Make sure vars(Namespace) works. The way we originally added cmd2_hander to it resulted in a RecursionError.
324+
# Make sure vars(Namespace) works. The way we originally added cmd2_handler to it resulted in a RecursionError.
325325
self.poutput(vars(args))
326326

327327

tests/test_argparse_completer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ def test_completion_items_descriptive_header(ac_app):
999999
('nargs --one_or_more', '-', True),
10001000
# This flag has reached its minimum value count and therefore a new flag could start.
10011001
# However the flag can still consume values and the text is not a single prefix character.
1002-
# Therefor a hint will be shown.
1002+
# Therefore a hint will be shown.
10031003
('nargs --one_or_more choices', 'bad_completion', True),
10041004
# Like the previous case, but this time text is a single prefix character which will cause flag
10051005
# name completion to occur instead of a hint for the current flag.

tests/test_cmd2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ def test_raise_keyboard_interrupt(base_app):
10651065
assert 'Got a keyboard interrupt' in str(excinfo.value)
10661066

10671067

1068-
@pytest.mark.skipif(sys.platform.startswith('win'), reason="SIGTERM only handeled on Linux/Mac")
1068+
@pytest.mark.skipif(sys.platform.startswith('win'), reason="SIGTERM only handled on Linux/Mac")
10691069
def test_termination_signal_handler(base_app):
10701070
with pytest.raises(SystemExit) as excinfo:
10711071
base_app.termination_signal_handler(signal.SIGHUP, 1)

tests/test_completion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def test_shell_command_completion_does_path_completion_when_after_command(cmd2_a
384384
assert first_match is not None and cmd2_app.completion_matches == [text + '.py ']
385385

386386

387-
def test_shell_commmand_complete_in_path(cmd2_app, request):
387+
def test_shell_command_complete_in_path(cmd2_app, request):
388388
test_dir = os.path.dirname(request.module.__file__)
389389

390390
text = os.path.join(test_dir, 's')

tests/test_parsing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_parse_output_to_paste_buffer(parser):
503503

504504

505505
def test_parse_redirect_inside_terminator(parser):
506-
"""The terminator designates the end of the commmand/arguments portion.
506+
"""The terminator designates the end of the command/arguments portion.
507507
If a redirector occurs before a terminator, then it will be treated as
508508
part of the arguments and not as a redirector."""
509509
line = 'has > inside;'

0 commit comments

Comments
 (0)