Rename "misc" command to "system", do not append completion code for Fish shell // Resolve 3435

This commit is contained in:
Ivan Kravets
2020-05-23 20:00:56 +03:00
parent 4921bf8b6a
commit 7dce494ad6
5 changed files with 5 additions and 5 deletions

2
docs

Submodule docs updated: bc9d81b1d3...2cd0dce683

View File

@ -18,14 +18,14 @@ import subprocess
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

View File

@ -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):

View File

@ -19,7 +19,7 @@ envlist = py27,py37,py38
passenv = *
usedevelop = True
deps =
py36,py3,py38: black
py36,py37,py38: black
isort
pylint
pytest