forked from UiPath/uipath-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli_deploy.py
More file actions
36 lines (33 loc) · 818 Bytes
/
Copy pathcli_deploy.py
File metadata and controls
36 lines (33 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import click
from ._telemetry import track_command
from .cli_pack import pack
from .cli_publish import publish
@click.command()
@click.option(
"--tenant",
"-t",
"feed",
flag_value="tenant",
help="Whether to publish to the tenant package feed",
)
@click.option(
"--my-workspace",
"-w",
"feed",
flag_value="personal",
help="Whether to publish to the personal workspace",
)
@click.option(
"--folder",
"-f",
"folder",
type=str,
help="Folder name to publish to (skips interactive selection)",
)
@click.argument("root", type=str, default="./")
@track_command("deploy")
def deploy(root, feed, folder):
"""Pack and publish the project."""
ctx = click.get_current_context()
ctx.invoke(pack, root=root)
ctx.invoke(publish, feed=feed, folder=folder)