Skip to content

Commit 4907dfa

Browse files
committed
Fix #2, upstream broke us
1 parent aee252d commit 4907dfa

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## 1.0.0 (2018-07-22)
7+
## Unreleased
8+
9+
### Fixed
10+
- Because of a breaking change in `cmd2`, we now require `cmd2>=0.9.12`
811

9-
### Added
10-
- Created cmd2_abbrev plugin with example showing usage
1112

1213
## 1.0.1 (2018-07-22)
1314

1415
### Fixed
1516
- Metadata for packaging
17+
18+
19+
## 1.0.0 (2018-07-22)
20+
21+
### Added
22+
- Created cmd2_abbrev plugin with example showing usage
23+

cmd2_abbrev/abbrev.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def cmd2_abbrev_hook(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.Pos
2222
target = 'do_' + data.statement.command
2323
if target not in dir(self):
2424
# check if the entered command might be an abbreviation
25-
funcs = [func for func in self.keywords if func.startswith(data.statement.command)]
25+
cmds = self.get_all_commands()
26+
funcs = [func for func in cmds if func.startswith(data.statement.command)]
2627
if len(funcs) == 1:
2728
raw = data.statement.raw.replace(data.statement.command, funcs[0], 1)
2829
data.statement = self.statement_parser.parse(raw)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
packages=['cmd2_abbrev'],
2828

2929
python_requires='>=3.4',
30-
install_requires=['cmd2 >= 0.9.4, <=2'],
30+
install_requires=['cmd2 >= 0.9.12, <=2'],
3131

3232
setup_requires=['setuptools_scm'],
3333

0 commit comments

Comments
 (0)