Fix message when building plugin
This commit is contained in:
parent
16045d9c63
commit
1965489f51
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ def upload_plugin(output: Union[str, IO], server: str) -> None:
|
|||
@click.argument("path", default=os.getcwd())
|
||||
@click.option("-o", "--output", help="Path to output built plugin to",
|
||||
type=PathValidator.click_type)
|
||||
@click.option("-u", "--upload", help="Upload plugin to server after building", is_flag=True,
|
||||
@click.option("-u", "--upload", help="Upload plugin to server after building", is_flag=True,
|
||||
default=False)
|
||||
@click.option("-s", "--server", help="Server to upload built plugin to")
|
||||
def build(path: str, output: str, upload: bool, server: str) -> None:
|
||||
|
@ -133,7 +133,7 @@ def build(path: str, output: str, upload: bool, server: str) -> None:
|
|||
os.chdir(path)
|
||||
write_plugin(meta, output)
|
||||
if isinstance(output, str):
|
||||
print(f"{Fore.GREEN}Plugin built to {Fore.CYAN}{path}{Fore.GREEN}.{Fore.RESET}")
|
||||
print(f"{Fore.GREEN}Plugin built to {Fore.CYAN}{output}{Fore.GREEN}.{Fore.RESET}")
|
||||
else:
|
||||
output.seek(0)
|
||||
if upload:
|
||||
|
|
Loading…
Reference in a new issue