feat: only auth in deploy

This commit is contained in:
Florian Hönicke
2023-04-14 16:12:28 +02:00
parent a65b5ff9df
commit c1d82c4b3d

View File

@@ -37,7 +37,6 @@ def path_param(func):
def main(ctx):
if ctx.invoked_subcommand is None:
click.echo(ctx.get_help())
jina_auth_login()
@main.command()
@@ -71,6 +70,7 @@ def run(path):
@main.command()
@path_param
def deploy(path):
jina_auth_login()
from src.options.deploy.deployer import Deployer
path = os.path.expanduser(path)
path = os.path.abspath(path)