Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable git-like did-you-mean feature #318

Merged
merged 5 commits into from
Oct 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Improve Arrow 0.15.0 support after changes in `arrow.get()` behavior (#296)
- Watson now suggests correct command if users make small typo (#318)

### Fixed

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
arrow!=0.11,!=0.12.0
click
click-didyoumean
hiiwave marked this conversation as resolved.
Show resolved Hide resolved
requests
3 changes: 2 additions & 1 deletion watson/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import arrow
import click
from click_didyoumean import DYMGroup

from . import watson as _watson
from .frames import Frame
Expand Down Expand Up @@ -122,7 +123,7 @@ def wrapper(*args, **kwargs):
return wrapper


@click.group()
@click.group(cls=DYMGroup)
@click.version_option(version=_watson.__version__, prog_name='Watson')
@click.pass_context
def cli(ctx):
Expand Down