Skip to content

Commit

Permalink
Rename "misc" command to "system", do not append completion code for …
Browse files Browse the repository at this point in the history
…Fish shell // Resolve 3435
  • Loading branch information
ivankravets committed May 23, 2020
1 parent 4921bf8 commit 7dce494
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
import click

from platformio import proc
from platformio.commands.misc.completion import (
from platformio.commands.system.completion import (
get_completion_install_path,
install_completion_code,
uninstall_completion_code,
)


@click.group("misc", short_help="Miscellaneous commands")
@click.group("system", short_help="Miscellaneous system commands")
def cli():
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def install_completion_code(shell, path):
if is_completion_code_installed(shell, path):
return None

return click_completion.install(shell=shell, path=path)
return click_completion.install(shell=shell, path=path, append=shell != "fish")


def uninstall_completion_code(shell, path):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ envlist = py27,py37,py38
passenv = *
usedevelop = True
deps =
py36,py3,py38: black
py36,py37,py38: black
isort
pylint
pytest
Expand Down

0 comments on commit 7dce494

Please sign in to comment.