mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-21 07:34:20 +01:00
feat: only auth in deploy
This commit is contained in:
@@ -37,7 +37,6 @@ def path_param(func):
|
|||||||
def main(ctx):
|
def main(ctx):
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
click.echo(ctx.get_help())
|
click.echo(ctx.get_help())
|
||||||
jina_auth_login()
|
|
||||||
|
|
||||||
|
|
||||||
@main.command()
|
@main.command()
|
||||||
@@ -71,6 +70,7 @@ def run(path):
|
|||||||
@main.command()
|
@main.command()
|
||||||
@path_param
|
@path_param
|
||||||
def deploy(path):
|
def deploy(path):
|
||||||
|
jina_auth_login()
|
||||||
from src.options.deploy.deployer import Deployer
|
from src.options.deploy.deployer import Deployer
|
||||||
path = os.path.expanduser(path)
|
path = os.path.expanduser(path)
|
||||||
path = os.path.abspath(path)
|
path = os.path.abspath(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user