Skip to content

Commit

Permalink
fix: Correct cast_site and write_config command names (#134)
Browse files Browse the repository at this point in the history
* Fix cast_site and write_config command names

..as click have begun replacing underscores with dashes in command names that are derived from function names.

* Revert change to write_config part of readme
  • Loading branch information
theychx authored and skorokithakis committed Oct 12, 2018
1 parent 138f580 commit bb040b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ be selected, when you have not selected a device via the cli.

You can write your choice of default device to ``catt.cfg`` by doing::

catt -d <name_of_chromecast> write-config
catt -d <name_of_chromecast> write_config

In the ``[aliases]`` section, you can specify aliases for the names of your
chromecasts. You can then select a device just by doing::
Expand Down
4 changes: 2 additions & 2 deletions catt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def cli(ctx, delete_cache, device):
ctx.obj["device"] = device


@cli.command(short_help="Write the name of default Chromecast device to config file.")
@cli.command("write_config", short_help="Write the name of default Chromecast device to config file.")
@click.pass_obj
def write_config(settings):
if settings.get("device"):
Expand Down Expand Up @@ -254,7 +254,7 @@ def cast(settings, video_url, subtitle, force_default, random_play, no_subs, ytd
time.sleep(1)


@cli.command(short_help="Cast any website to a Chromecast.")
@cli.command("cast_site", short_help="Cast any website to a Chromecast.")
@click.argument("url", callback=process_url)
@click.pass_obj
def cast_site(settings, url):
Expand Down

0 comments on commit bb040b0

Please sign in to comment.