port-ocean 0.4.8__py3-none-any.whl → 0.4.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- port_ocean/cli/commands/new.py +11 -1
- port_ocean/cli/cookiecutter/cookiecutter.json +1 -0
- port_ocean/cli/cookiecutter/hooks/post_gen_project.py +11 -0
- {port_ocean-0.4.8.dist-info → port_ocean-0.4.9.dist-info}/METADATA +1 -1
- {port_ocean-0.4.8.dist-info → port_ocean-0.4.9.dist-info}/RECORD +8 -7
- {port_ocean-0.4.8.dist-info → port_ocean-0.4.9.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.4.8.dist-info → port_ocean-0.4.9.dist-info}/WHEEL +0 -0
- {port_ocean-0.4.8.dist-info → port_ocean-0.4.9.dist-info}/entry_points.txt +0 -0
port_ocean/cli/commands/new.py
CHANGED
|
@@ -9,7 +9,14 @@ from port_ocean.cli.utils import cli_root_path
|
|
|
9
9
|
|
|
10
10
|
@cli_start.command()
|
|
11
11
|
@click.argument("path", default=".", type=click.Path(exists=True))
|
|
12
|
-
|
|
12
|
+
@click.option(
|
|
13
|
+
"--remove-docker-files",
|
|
14
|
+
"remove_docker_files",
|
|
15
|
+
is_flag=True,
|
|
16
|
+
default=False,
|
|
17
|
+
help="Remove Docker files from the generated project. (Used for contributing to Ocean)",
|
|
18
|
+
)
|
|
19
|
+
def new(path: str, remove_docker_files: bool) -> None:
|
|
13
20
|
"""
|
|
14
21
|
Scaffold a new integration in the given PATH.
|
|
15
22
|
|
|
@@ -24,6 +31,9 @@ def new(path: str) -> None:
|
|
|
24
31
|
result = cookiecutter(
|
|
25
32
|
f"{cli_root_path}/cookiecutter",
|
|
26
33
|
output_dir=path,
|
|
34
|
+
extra_context={
|
|
35
|
+
"remove_docker_files": remove_docker_files,
|
|
36
|
+
},
|
|
27
37
|
)
|
|
28
38
|
name = result.split("/")[-1]
|
|
29
39
|
|
|
@@ -9,13 +9,14 @@ port_ocean/cli/commands/defaults/dock.py,sha256=V5jm9j96r7hGxq0pC5xMf-z_w2MBcOJL
|
|
|
9
9
|
port_ocean/cli/commands/defaults/group.py,sha256=hii_4CYoQ7jSMePbnP4AmruO_RKWCUcoV7dXXBlZafc,115
|
|
10
10
|
port_ocean/cli/commands/list_integrations.py,sha256=DVVioFruGUE-_v6UUHlcemWNN6RlWwCrf1X4HmAXsf8,1134
|
|
11
11
|
port_ocean/cli/commands/main.py,sha256=gj0lmuLep2XeLNuabB7Wk0UVYPT7_CD_rAw5AoUQWSE,1057
|
|
12
|
-
port_ocean/cli/commands/new.py,sha256=
|
|
12
|
+
port_ocean/cli/commands/new.py,sha256=FUj2tPgZDcafKu47pY0-X2JzdcMnFAw2sNOdSQZxu50,2054
|
|
13
13
|
port_ocean/cli/commands/pull.py,sha256=VvrRjLNlfPuLIf7KzeIcbzzdi98Z0M9wCRpXC3QPxdI,2306
|
|
14
14
|
port_ocean/cli/commands/sail.py,sha256=rv_lKFITsV5ta9ng3g4eR5H6AtlAsrvBQpAvH_p2DaA,2193
|
|
15
15
|
port_ocean/cli/commands/version.py,sha256=hEuIEIcm6Zkamz41Z9nxeSM_4g3oNlAgWwQyDGboh-E,536
|
|
16
16
|
port_ocean/cli/cookiecutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
port_ocean/cli/cookiecutter/cookiecutter.json,sha256=
|
|
17
|
+
port_ocean/cli/cookiecutter/cookiecutter.json,sha256=sXRXRhhhZa7HRzGm67rSQG7Liad2540KrT7ol8IMvtg,478
|
|
18
18
|
port_ocean/cli/cookiecutter/extensions.py,sha256=eQNjZvy2enDkJpvMbBGil77Xk9-38f862wfnmCjdoBc,446
|
|
19
|
+
port_ocean/cli/cookiecutter/hooks/post_gen_project.py,sha256=w3CH4Ry_sxjCJ-FWwMiuN6ysfZ_9NCiclasxGsqAUdQ,219
|
|
19
20
|
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.dockerignore,sha256=9Mz_WI7XBpKzlJ7ILb4vlcuzYkh98Ql3bP_5GHN1sRY,1034
|
|
20
21
|
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.gitignore,sha256=32p1lDW_g5hyBz486GWfDeR9m7ikFlASVri5a8vmNoo,2698
|
|
21
22
|
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/.gitignore,sha256=kCpRPdl3S_jqYYZaOrc0-xa6-l3KqVjNRXc6jCkd_-Q,12
|
|
@@ -111,8 +112,8 @@ port_ocean/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
111
112
|
port_ocean/run.py,sha256=xvYZlfi-J-IcqsAg8tNVnvl1mEUr6wPSya_-Bbf6jAU,1811
|
|
112
113
|
port_ocean/utils.py,sha256=ZQCdOk1DzAA3hwUxFAzmbxQurnNYGpl1bDsPocJSkko,6129
|
|
113
114
|
port_ocean/version.py,sha256=2ugCk8TXPsRIuFviZ8j3RPaszSw2HE-KuaW8vhgWJVM,172
|
|
114
|
-
port_ocean-0.4.
|
|
115
|
-
port_ocean-0.4.
|
|
116
|
-
port_ocean-0.4.
|
|
117
|
-
port_ocean-0.4.
|
|
118
|
-
port_ocean-0.4.
|
|
115
|
+
port_ocean-0.4.9.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
116
|
+
port_ocean-0.4.9.dist-info/METADATA,sha256=r0Wm43wriHPQmVlQVnafGaTrP7p-8oMQynYV6WY8s7M,6490
|
|
117
|
+
port_ocean-0.4.9.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
118
|
+
port_ocean-0.4.9.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
|
119
|
+
port_ocean-0.4.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|