Extra features for standard library's cmd module
481.20 KB
built 2026-10-17 08:07:08 GMT
Description
Enhancements for standard library's cmd module.
Drop-in replacement adds several features for command-prompt tools:
* Searchable command history (commands: "hi", "li", "run")
* Load commands from file, save to file, edit commands in file
* Multi-line commands
* Case-insensitive commands
* Special-character shortcut commands (beyond cmd's "@" and "!")
* Settable environment parameters
* Parsing commands with flags
* > (filename), >> (filename) redirect output to file
* < (filename) gets input from file
* bare >, >>, < redirect to/from paste buffer
* accepts abbreviated commands when unambiguous
* `py` enters interactive Python console
* test apps against sample session transcript (see example/example.py)
Usable without modification anywhere cmd is used; simply import cmd2.Cmd
in place of cmd.Cmd.
See docs at http://packages.python.org/cmd2/
Dependencies
16 totalRequires11
- /usr/bin/which
- python(abi) = 3.15
- python3.15dist(prompt-toolkit) >= 3.0.52
- python3.15dist(pyperclip) >= 1.8.2
- python3.15dist(rich) >= 15
- python3.15dist(rich-argparse) >= 1.7.2
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PartialHardlinkSets) <= 4.0.4-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides5
- python-cmd2 = 4.2.0-1.fc45
- python3-cmd2 = 4.2.0-1.fc45
- python3.15-cmd2 = 4.2.0-1.fc45
- python3.15dist(cmd2) = 4.2
- python3dist(cmd2) = 4.2
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
168
Files 1–50 of 168
Next →
Component of
buildroots that installed this RPMBuildroot ![]() |
Created | State |
|---|---|---|
| f45-build-33854-674 | 2026-10-17 15:40:12 | expired |
| f45-build-33312-667 | 2026-10-17 14:09:36 | expired |
| f45-build-33261-667 | 2026-10-17 14:04:29 | expired |
| f45-build-33104-666 | 2026-10-17 13:47:51 | expired |
| f45-build-32255-658 | 2026-10-17 12:14:37 | expired |
| f45-build-32038-656 | 2026-10-17 11:49:11 | expired |
| f45-build-31845-655 | 2026-10-17 11:30:13 | expired |
Buildroots 1–7 of 7

