Skip to content

Commit 697da11

Browse files
committed
Renamed command_definition.py to command_set.py.
1 parent cecb59e commit 697da11

12 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cmd2/argparse_*.py @kmvanbrunt
3131
cmd2/clipboard.py @tleonhardt
3232
cmd2/cmd2.py @tleonhardt @kmvanbrunt
3333
cmd2/colors.py @tleonhardt @kmvanbrunt
34-
cmd2/command_definition.py @kmvanbrunt
34+
cmd2/command_set.py @kmvanbrunt
3535
cmd2/completion.py @kmvanbrunt
3636
cmd2/constants.py @tleonhardt @kmvanbrunt
3737
cmd2/decorators.py @kmvanbrunt

cmd2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)
2020
from .cmd2 import Cmd
2121
from .colors import Color
22-
from .command_definition import CommandSet
22+
from .command_set import CommandSet
2323
from .completion import (
2424
Choices,
2525
CompletionItem,

cmd2/argparse_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
Cmd2ArgumentParser,
3030
build_range_error,
3131
)
32-
from .command_definition import CommandSet
32+
from .command_set import CommandSet
3333
from .completion import (
3434
CompletionItem,
3535
Completions,

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
get_paste_buffer,
116116
write_to_paste_buffer,
117117
)
118-
from .command_definition import (
118+
from .command_set import (
119119
CommandFunc,
120120
CommandSet,
121121
)

cmd2/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from . import constants
1616
from .argparse_custom import Cmd2ArgumentParser
17-
from .command_definition import (
17+
from .command_set import (
1818
CommandFunc,
1919
CommandSet,
2020
)

cmd2/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
if TYPE_CHECKING: # pragma: no cover
1616
from .cmd2 import Cmd
17-
from .command_definition import CommandSet
17+
from .command_set import CommandSet
1818
from .completion import Choices, Completions
1919

2020
# A Cmd or CommandSet

docs/api/command_definition.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/api/command_set.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cmd2.command_set
2+
3+
::: cmd2.command_set

docs/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ incremented according to the [Semantic Version Specification](https://semver.org
1616
- [cmd2.argparse_custom](./argparse_custom.md) - classes and functions for extending `argparse`
1717
- [cmd2.clipboard](./clipboard.md) - functions to copy from and paste to the clipboard/pastebuffer
1818
- [cmd2.colors](./colors.md) - StrEnum of all color names supported by the Rich library
19-
- [cmd2.command_definition](./command_definition.md) - supports the definition of commands in
20-
separate classes to be composed into cmd2.Cmd
19+
- [cmd2.command_set](./command_set.md) - supports the definition of commands in separate classes to
20+
be composed into cmd2.Cmd
2121
- [cmd2.completion](./completion.md) - classes and functions related to command-line completion
2222
- [cmd2.constants](./constants.md) - constants used in `cmd2`
2323
- [cmd2.decorators](./decorators.md) - decorators for `cmd2` commands

0 commit comments

Comments
 (0)