dagster-dg-cli 1.10.18__tar.gz
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.
- dagster_dg_cli-1.10.18/LICENSE +201 -0
- dagster_dg_cli-1.10.18/MANIFEST.in +11 -0
- dagster_dg_cli-1.10.18/PKG-INFO +27 -0
- dagster_dg_cli-1.10.18/README.md +3 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/__init__.py +5 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/__init__.py +98 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/check.py +164 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/dev.py +147 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/docs.py +148 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/entrypoint.py +4 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/launch.py +94 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/list.py +450 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/mcp_server.py +31 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/plus/__init__.py +395 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/plus/constants.py +19 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/plus/deploy.py +439 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/plus/deploy_session.py +274 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/scaffold.py +924 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/cli/utils.py +290 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/.prettierrc.js +6 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/.yarn/install-state.gz +0 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/.yarnrc.yml +1 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/package.json +18 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/.gitignore +25 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/.prettierrc.json +6 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/README.md +3 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/eslint.config.mjs +27 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/package.json +39 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ComponentDetails.tsx +36 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ComponentExample.tsx +25 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ComponentHeader.tsx +73 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ComponentPageContents.tsx +34 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ComponentScaffolding.tsx +20 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ComponentSchema.tsx +366 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ComponentTags.tsx +20 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/CopyButton.tsx +59 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/ListView.tsx +42 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/PackageDetails.tsx +30 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/PackagePageDetails.tsx +20 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/PackageTree.tsx +191 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ComponentDetails.module.css +29 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ComponentExample.module.css +18 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ComponentHeader.module.css +66 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ComponentPageContents.module.css +58 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ComponentScaffolding.module.css +24 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ComponentSchema.module.css +164 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ComponentTags.module.css +20 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/CopyButton.module.css +18 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/ListView.module.css +37 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/PackageDetails.module.css +15 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/PackagePageDetails.module.css +17 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/PackageTree.module.css +150 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/css/yaml.css +23 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/globals.d.ts +9 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/schema/ArrayTag.tsx +52 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/schema/TypeTag.tsx +30 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/schema/css/ArrayTag.module.css +11 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/schema/css/TypeTag.module.css +14 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/src/types.ts +24 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-components/tsconfig.json +22 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/.gitignore +44 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/.yarnrc.yml +1 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/README.md +36 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/components/Header.tsx +91 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/components/PackageTree.tsx +7 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/components/PackageTreeSync.tsx +17 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/components/css/Header.module.css +18 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/components/css/PackageTree.module.css +144 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/components/css/yaml.css +23 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/css/colors.css +197 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/css/globals.css +239 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/css/layout.module.css +24 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/favicon.svg +28 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/layout.tsx +51 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/packages/[pkg]/PackagePageWithLink.tsx +13 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/packages/[pkg]/[component]/page.tsx +36 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/packages/[pkg]/page.tsx +30 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/app/page.tsx +21 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/eslint.config.mjs +14 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/next.config.ts +8 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/package.json +37 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/site/.gitignore +44 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/site/.prettierrc.js +6 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/tsconfig.json +29 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/packages/dg-docs-site/util/getContents.ts +39 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/docs/yarn.lock +4859 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/py.typed +1 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/scaffold.py +118 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/COMPONENT_TYPE/COMPONENT_TYPE_NAME_PLACEHOLDER.py.jinja +27 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/build-location-fragment.yaml +16 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/deploy_uv_Dockerfile.jinja +40 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/deploy_uv_editable_Dockerfile.jinja +49 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/hybrid-github-action.yaml +94 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/registry_fragments/azure-container-registry-login-fragment.yaml +9 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/registry_fragments/dockerhub-login-fragment.yaml +8 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/registry_fragments/ecr-login-fragment.yaml +12 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/registry_fragments/gcr-login-fragment.yaml +9 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/registry_fragments/github-container-registry-login-fragment.yaml +9 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/templates/serverless-github-action.yaml +102 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/utils/__init__.py +0 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/utils/plus/__init__.py +0 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/utils/plus/build.py +97 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/utils/plus/gql.py +182 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/utils/plus/gql_client.py +48 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli/version.py +1 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli.egg-info/PKG-INFO +27 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli.egg-info/SOURCES.txt +113 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli.egg-info/dependency_links.txt +1 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli.egg-info/entry_points.txt +2 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli.egg-info/not-zip-safe +1 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli.egg-info/requires.txt +7 -0
- dagster_dg_cli-1.10.18/dagster_dg_cli.egg-info/top_level.txt +1 -0
- dagster_dg_cli-1.10.18/setup.cfg +14 -0
- dagster_dg_cli-1.10.18/setup.py +54 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2023 Dagster Labs, Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include dagster_dg_cli/py.typed
|
|
4
|
+
recursive-include dagster_dg_cli/templates *
|
|
5
|
+
recursive-include dagster_dg_cli/docs *
|
|
6
|
+
recursive-exclude dagster_dg_cli/docs/.next *
|
|
7
|
+
recursive-exclude dagster_dg_cli/docs/node_modules *
|
|
8
|
+
recursive-exclude dagster_dg_cli/docs/packages/dg-docs-components/.next *
|
|
9
|
+
recursive-exclude dagster_dg_cli/docs/packages/dg-docs-components/node_modules *
|
|
10
|
+
recursive-exclude dagster_dg_cli/docs/packages/dg-docs-site/.next *
|
|
11
|
+
recursive-exclude dagster_dg_cli/docs/packages/dg-docs-site/node_modules *
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dagster-dg-cli
|
|
3
|
+
Version: 1.10.18
|
|
4
|
+
Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-dg-cli
|
|
5
|
+
Author: Dagster Labs
|
|
6
|
+
Author-email: hello@dagsterlabs.com
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: dagster-dg-core==1.10.18
|
|
16
|
+
Provides-Extra: local
|
|
17
|
+
Requires-Dist: dagster==1.10.18; extra == "local"
|
|
18
|
+
Provides-Extra: mcp
|
|
19
|
+
Requires-Dist: mcp; extra == "mcp"
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: home-page
|
|
24
|
+
Dynamic: license
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
Dynamic: provides-extra
|
|
27
|
+
Dynamic: requires-dist
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
import click
|
|
5
|
+
from dagster_dg_core.config import normalize_cli_config
|
|
6
|
+
from dagster_dg_core.context import DgContext
|
|
7
|
+
from dagster_dg_core.shared_options import dg_global_options, dg_path_options
|
|
8
|
+
from dagster_dg_core.utils import DG_CLI_MAX_OUTPUT_WIDTH, DgClickGroup
|
|
9
|
+
|
|
10
|
+
from dagster_dg_cli.cli.check import check_group
|
|
11
|
+
from dagster_dg_cli.cli.dev import dev_command
|
|
12
|
+
from dagster_dg_cli.cli.docs import docs_group
|
|
13
|
+
from dagster_dg_cli.cli.launch import launch_command
|
|
14
|
+
from dagster_dg_cli.cli.list import list_group
|
|
15
|
+
from dagster_dg_cli.cli.mcp_server import mcp_group
|
|
16
|
+
from dagster_dg_cli.cli.plus import plus_group
|
|
17
|
+
from dagster_dg_cli.cli.scaffold import scaffold_group
|
|
18
|
+
from dagster_dg_cli.cli.utils import utils_group
|
|
19
|
+
from dagster_dg_cli.version import __version__
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def create_dg_cli():
|
|
23
|
+
@click.group(
|
|
24
|
+
name="dg",
|
|
25
|
+
commands={
|
|
26
|
+
"check": check_group,
|
|
27
|
+
"docs": docs_group,
|
|
28
|
+
"utils": utils_group,
|
|
29
|
+
"launch": launch_command,
|
|
30
|
+
"list": list_group,
|
|
31
|
+
"scaffold": scaffold_group,
|
|
32
|
+
"dev": dev_command,
|
|
33
|
+
"plus": plus_group,
|
|
34
|
+
"mcp": mcp_group,
|
|
35
|
+
},
|
|
36
|
+
context_settings={
|
|
37
|
+
"max_content_width": DG_CLI_MAX_OUTPUT_WIDTH,
|
|
38
|
+
"help_option_names": ["-h", "--help"],
|
|
39
|
+
},
|
|
40
|
+
invoke_without_command=True,
|
|
41
|
+
cls=DgClickGroup,
|
|
42
|
+
)
|
|
43
|
+
@dg_path_options
|
|
44
|
+
@dg_global_options
|
|
45
|
+
@click.option(
|
|
46
|
+
"--clear-cache",
|
|
47
|
+
is_flag=True,
|
|
48
|
+
help="Clear the cache.",
|
|
49
|
+
default=False,
|
|
50
|
+
)
|
|
51
|
+
@click.option(
|
|
52
|
+
"--install-completion",
|
|
53
|
+
is_flag=True,
|
|
54
|
+
help="Automatically detect your shell and install a completion script for the `dg` command. This will append to your shell startup file.",
|
|
55
|
+
default=False,
|
|
56
|
+
)
|
|
57
|
+
@click.version_option(__version__, "--version", "-v")
|
|
58
|
+
def group(
|
|
59
|
+
install_completion: bool,
|
|
60
|
+
clear_cache: bool,
|
|
61
|
+
path: Path,
|
|
62
|
+
**global_options: object,
|
|
63
|
+
):
|
|
64
|
+
"""CLI for managing Dagster projects."""
|
|
65
|
+
os.environ["DAGSTER_IS_DEV_CLI"] = "1"
|
|
66
|
+
|
|
67
|
+
context = click.get_current_context()
|
|
68
|
+
if install_completion:
|
|
69
|
+
import dagster_dg_core.completion
|
|
70
|
+
|
|
71
|
+
dagster_dg_core.completion.install_completion(context)
|
|
72
|
+
context.exit(0)
|
|
73
|
+
elif clear_cache:
|
|
74
|
+
from dagster_dg_core.cache import DgCache
|
|
75
|
+
|
|
76
|
+
cli_config = normalize_cli_config(global_options, context)
|
|
77
|
+
dg_context = DgContext.from_file_discovery_and_command_line_config(path, cli_config)
|
|
78
|
+
# Normally we would access the cache through the DgContext, but cache is currently
|
|
79
|
+
# disabled outside of a project context. When that restriction is lifted, we will change
|
|
80
|
+
# this to access the cache through the DgContext.
|
|
81
|
+
cache = DgCache.from_config(dg_context.config)
|
|
82
|
+
cache.clear_all()
|
|
83
|
+
if context.invoked_subcommand is None:
|
|
84
|
+
context.exit(0)
|
|
85
|
+
|
|
86
|
+
elif context.invoked_subcommand is None:
|
|
87
|
+
click.echo(context.get_help())
|
|
88
|
+
context.exit(0)
|
|
89
|
+
|
|
90
|
+
return group
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
ENV_PREFIX = "DAGSTER_DG"
|
|
94
|
+
cli = create_dg_cli()
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def main():
|
|
98
|
+
cli(auto_envvar_prefix=ENV_PREFIX)
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
from collections.abc import Mapping, Sequence
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
import click
|
|
6
|
+
from dagster_dg_core.config import normalize_cli_config
|
|
7
|
+
from dagster_dg_core.context import DgContext
|
|
8
|
+
from dagster_dg_core.shared_options import dg_global_options, dg_path_options
|
|
9
|
+
from dagster_dg_core.utils import DgClickCommand, DgClickGroup, pushd, validate_dagster_availability
|
|
10
|
+
from dagster_dg_core.utils.telemetry import cli_telemetry_wrapper
|
|
11
|
+
|
|
12
|
+
from dagster_dg_cli.cli.utils import create_temp_workspace_file
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@click.group(name="check", cls=DgClickGroup)
|
|
16
|
+
def check_group():
|
|
17
|
+
"""Commands for checking the integrity of your Dagster code."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# ########################
|
|
21
|
+
# ##### COMPONENT
|
|
22
|
+
# ########################
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@check_group.command(name="yaml", cls=DgClickCommand)
|
|
26
|
+
@click.argument("paths", nargs=-1, type=click.Path(exists=True))
|
|
27
|
+
@click.option(
|
|
28
|
+
"--watch", is_flag=True, help="Watch for changes to the component files and re-validate them."
|
|
29
|
+
)
|
|
30
|
+
@click.option(
|
|
31
|
+
"--validate-requirements",
|
|
32
|
+
"--no-validate-requirements",
|
|
33
|
+
is_flag=True,
|
|
34
|
+
default=True,
|
|
35
|
+
help="Validate environment variables in requirements for all components in the given module.",
|
|
36
|
+
)
|
|
37
|
+
@dg_global_options
|
|
38
|
+
@dg_path_options
|
|
39
|
+
@cli_telemetry_wrapper
|
|
40
|
+
def check_yaml_command(
|
|
41
|
+
paths: Sequence[str],
|
|
42
|
+
watch: bool,
|
|
43
|
+
validate_requirements: bool,
|
|
44
|
+
path: Path,
|
|
45
|
+
**global_options: object,
|
|
46
|
+
) -> None:
|
|
47
|
+
"""Check defs.yaml files against their schemas, showing validation errors."""
|
|
48
|
+
from dagster_dg_core.utils.filesystem import watch_paths
|
|
49
|
+
|
|
50
|
+
cli_config = normalize_cli_config(global_options, click.get_current_context())
|
|
51
|
+
dg_context = DgContext.for_project_environment(path, cli_config)
|
|
52
|
+
resolved_paths = [Path(p).absolute() for p in paths]
|
|
53
|
+
|
|
54
|
+
def run_check(_: Any = None) -> bool:
|
|
55
|
+
# defer for import performance
|
|
56
|
+
from dagster_dg_core.check import check_yaml as check_yaml_fn
|
|
57
|
+
|
|
58
|
+
return check_yaml_fn(dg_context, resolved_paths, validate_requirements)
|
|
59
|
+
|
|
60
|
+
if watch:
|
|
61
|
+
watched_paths = (
|
|
62
|
+
resolved_paths or [dg_context.defs_path]
|
|
63
|
+
) + dg_context.component_registry_paths()
|
|
64
|
+
watch_paths(watched_paths, run_check)
|
|
65
|
+
else:
|
|
66
|
+
if run_check(None):
|
|
67
|
+
click.get_current_context().exit(0)
|
|
68
|
+
else:
|
|
69
|
+
click.get_current_context().exit(1)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@check_group.command(name="defs", cls=DgClickCommand)
|
|
73
|
+
@click.option(
|
|
74
|
+
"--log-level",
|
|
75
|
+
help="Set the log level for dagster services.",
|
|
76
|
+
show_default=True,
|
|
77
|
+
default="warning",
|
|
78
|
+
type=click.Choice(["critical", "error", "warning", "info", "debug"], case_sensitive=False),
|
|
79
|
+
)
|
|
80
|
+
@click.option(
|
|
81
|
+
"--log-format",
|
|
82
|
+
type=click.Choice(["colored", "json", "rich"], case_sensitive=False),
|
|
83
|
+
show_default=True,
|
|
84
|
+
required=False,
|
|
85
|
+
default="colored",
|
|
86
|
+
help="Format of the logs for dagster services",
|
|
87
|
+
)
|
|
88
|
+
@click.option(
|
|
89
|
+
"--verbose",
|
|
90
|
+
"-v",
|
|
91
|
+
flag_value=True,
|
|
92
|
+
default=False,
|
|
93
|
+
help="Show verbose error messages, including system frames in stack traces.",
|
|
94
|
+
)
|
|
95
|
+
@click.option(
|
|
96
|
+
"--check-yaml/--no-check-yaml",
|
|
97
|
+
flag_value=True,
|
|
98
|
+
default=True,
|
|
99
|
+
help="Whether to schema-check defs.yaml files for the project before loading and checking all definitions.",
|
|
100
|
+
)
|
|
101
|
+
@dg_path_options
|
|
102
|
+
@dg_global_options
|
|
103
|
+
@click.pass_context
|
|
104
|
+
@cli_telemetry_wrapper
|
|
105
|
+
def check_definitions_command(
|
|
106
|
+
context: click.Context,
|
|
107
|
+
log_level: str,
|
|
108
|
+
log_format: str,
|
|
109
|
+
verbose: bool,
|
|
110
|
+
path: Path,
|
|
111
|
+
**global_options: Mapping[str, object],
|
|
112
|
+
) -> None:
|
|
113
|
+
"""Loads and validates your Dagster definitions using a Dagster instance.
|
|
114
|
+
|
|
115
|
+
If run inside a deployment directory, this command will launch all code locations in the
|
|
116
|
+
deployment. If launched inside a code location directory, it will launch only that code
|
|
117
|
+
location.
|
|
118
|
+
|
|
119
|
+
When running, this command sets the environment variable `DAGSTER_IS_DEFS_VALIDATION_CLI=1`.
|
|
120
|
+
This environment variable can be used to control the behavior of your code in validation mode.
|
|
121
|
+
|
|
122
|
+
This command returns an exit code 1 when errors are found, otherwise an exit code 0.
|
|
123
|
+
|
|
124
|
+
"""
|
|
125
|
+
# defer for import performance
|
|
126
|
+
from dagster_dg_core.check import check_yaml as check_yaml_fn
|
|
127
|
+
|
|
128
|
+
cli_config = normalize_cli_config(global_options, context)
|
|
129
|
+
dg_context = DgContext.for_workspace_or_project_environment(path, cli_config)
|
|
130
|
+
|
|
131
|
+
validate_dagster_availability()
|
|
132
|
+
|
|
133
|
+
with (
|
|
134
|
+
pushd(dg_context.root_path),
|
|
135
|
+
create_temp_workspace_file(dg_context) as workspace_file,
|
|
136
|
+
):
|
|
137
|
+
if check_yaml_fn:
|
|
138
|
+
overall_check_result = True
|
|
139
|
+
project_dirs = (
|
|
140
|
+
[project.path for project in dg_context.project_specs]
|
|
141
|
+
if dg_context.is_workspace
|
|
142
|
+
else [dg_context.root_path]
|
|
143
|
+
)
|
|
144
|
+
for project_dir in project_dirs:
|
|
145
|
+
check_result = check_yaml_fn(
|
|
146
|
+
dg_context.for_project_environment(project_dir, cli_config),
|
|
147
|
+
[],
|
|
148
|
+
validate_requirements=False,
|
|
149
|
+
)
|
|
150
|
+
overall_check_result = overall_check_result and check_result
|
|
151
|
+
if not overall_check_result:
|
|
152
|
+
click.get_current_context().exit(1)
|
|
153
|
+
|
|
154
|
+
from dagster._cli.definitions import definitions_validate_command_impl
|
|
155
|
+
|
|
156
|
+
definitions_validate_command_impl(
|
|
157
|
+
log_level=log_level,
|
|
158
|
+
log_format=log_format,
|
|
159
|
+
load_with_grpc=False,
|
|
160
|
+
verbose=verbose,
|
|
161
|
+
workspace=[workspace_file],
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
click.echo("All definitions loaded successfully.")
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import os
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
from typing import Optional, TypeVar
|
|
6
|
+
|
|
7
|
+
import click
|
|
8
|
+
from dagster_dg_core.config import normalize_cli_config
|
|
9
|
+
from dagster_dg_core.context import DgContext
|
|
10
|
+
from dagster_dg_core.shared_options import dg_global_options, dg_path_options
|
|
11
|
+
from dagster_dg_core.utils import DgClickCommand, pushd, validate_dagster_availability
|
|
12
|
+
from dagster_dg_core.utils.telemetry import cli_telemetry_wrapper
|
|
13
|
+
|
|
14
|
+
from dagster_dg_cli.cli.utils import create_temp_workspace_file
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T")
|
|
17
|
+
|
|
18
|
+
_CHECK_SUBPROCESS_INTERVAL = 5
|
|
19
|
+
_SUBPROCESS_WAIT_TIMEOUT = 60
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@click.command(name="dev", cls=DgClickCommand)
|
|
23
|
+
@click.option(
|
|
24
|
+
"--code-server-log-level",
|
|
25
|
+
help="Set the log level for code servers spun up by dagster services.",
|
|
26
|
+
show_default=True,
|
|
27
|
+
default="warning",
|
|
28
|
+
type=click.Choice(["critical", "error", "warning", "info", "debug"], case_sensitive=False),
|
|
29
|
+
)
|
|
30
|
+
@click.option(
|
|
31
|
+
"--log-level",
|
|
32
|
+
help="Set the log level for dagster services.",
|
|
33
|
+
show_default=True,
|
|
34
|
+
default="info",
|
|
35
|
+
type=click.Choice(["critical", "error", "warning", "info", "debug"], case_sensitive=False),
|
|
36
|
+
)
|
|
37
|
+
@click.option(
|
|
38
|
+
"--log-format",
|
|
39
|
+
type=click.Choice(["colored", "json", "rich"], case_sensitive=False),
|
|
40
|
+
show_default=True,
|
|
41
|
+
required=False,
|
|
42
|
+
default="colored",
|
|
43
|
+
help="Format of the logs for dagster services",
|
|
44
|
+
)
|
|
45
|
+
@click.option(
|
|
46
|
+
"--port",
|
|
47
|
+
"-p",
|
|
48
|
+
type=int,
|
|
49
|
+
help="Port to use for the Dagster webserver.",
|
|
50
|
+
required=False,
|
|
51
|
+
)
|
|
52
|
+
@click.option(
|
|
53
|
+
"--host",
|
|
54
|
+
"-h",
|
|
55
|
+
type=str,
|
|
56
|
+
help="Host to use for the Dagster webserver.",
|
|
57
|
+
required=False,
|
|
58
|
+
)
|
|
59
|
+
@click.option(
|
|
60
|
+
"--live-data-poll-rate",
|
|
61
|
+
help="Rate at which the dagster UI polls for updated asset data (in milliseconds)",
|
|
62
|
+
type=int,
|
|
63
|
+
default=2000,
|
|
64
|
+
show_default=True,
|
|
65
|
+
required=False,
|
|
66
|
+
)
|
|
67
|
+
@click.option(
|
|
68
|
+
"--check-yaml/--no-check-yaml",
|
|
69
|
+
flag_value=True,
|
|
70
|
+
default=True,
|
|
71
|
+
help="Whether to schema-check defs.yaml files for the project before starting the dev server.",
|
|
72
|
+
)
|
|
73
|
+
@dg_path_options
|
|
74
|
+
@dg_global_options
|
|
75
|
+
@cli_telemetry_wrapper
|
|
76
|
+
def dev_command(
|
|
77
|
+
code_server_log_level: str,
|
|
78
|
+
log_level: str,
|
|
79
|
+
log_format: str,
|
|
80
|
+
port: Optional[int],
|
|
81
|
+
host: Optional[str],
|
|
82
|
+
live_data_poll_rate: int,
|
|
83
|
+
check_yaml: bool,
|
|
84
|
+
path: Path,
|
|
85
|
+
**global_options: Mapping[str, object],
|
|
86
|
+
) -> None:
|
|
87
|
+
"""Start a local instance of Dagster.
|
|
88
|
+
|
|
89
|
+
If run inside a workspace directory, this command will launch all projects in the
|
|
90
|
+
workspace. If launched inside a project directory, it will launch only that project.
|
|
91
|
+
"""
|
|
92
|
+
from dagster_dg_core.check import check_yaml as check_yaml_fn
|
|
93
|
+
|
|
94
|
+
validate_dagster_availability()
|
|
95
|
+
|
|
96
|
+
cli_config = normalize_cli_config(global_options, click.get_current_context())
|
|
97
|
+
dg_context = DgContext.for_workspace_or_project_environment(path, cli_config)
|
|
98
|
+
|
|
99
|
+
if dg_context.is_workspace:
|
|
100
|
+
os.environ["DAGSTER_PROJECT_ENV_FILE_PATHS"] = json.dumps(
|
|
101
|
+
{
|
|
102
|
+
dg_context.with_root_path(
|
|
103
|
+
dg_context.workspace_root_path / project.path
|
|
104
|
+
).code_location_name: str(project.path)
|
|
105
|
+
for project in dg_context.project_specs
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
else:
|
|
109
|
+
os.environ["DAGSTER_PROJECT_ENV_FILE_PATHS"] = json.dumps(
|
|
110
|
+
{dg_context.code_location_name: str(dg_context.root_path)}
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
with (
|
|
114
|
+
pushd(dg_context.root_path),
|
|
115
|
+
create_temp_workspace_file(dg_context) as workspace_file,
|
|
116
|
+
):
|
|
117
|
+
if check_yaml:
|
|
118
|
+
overall_check_result = True
|
|
119
|
+
project_dirs = (
|
|
120
|
+
[project.path for project in dg_context.project_specs]
|
|
121
|
+
if dg_context.is_workspace
|
|
122
|
+
else [dg_context.root_path]
|
|
123
|
+
)
|
|
124
|
+
for project_dir in project_dirs:
|
|
125
|
+
check_result = check_yaml_fn(
|
|
126
|
+
dg_context.for_project_environment(project_dir, cli_config),
|
|
127
|
+
[],
|
|
128
|
+
validate_requirements=False,
|
|
129
|
+
)
|
|
130
|
+
overall_check_result = overall_check_result and check_result
|
|
131
|
+
if not overall_check_result:
|
|
132
|
+
click.get_current_context().exit(1)
|
|
133
|
+
|
|
134
|
+
from dagster._cli.dev import dev_command_impl
|
|
135
|
+
|
|
136
|
+
dev_command_impl(
|
|
137
|
+
code_server_log_level=code_server_log_level,
|
|
138
|
+
log_level=log_level,
|
|
139
|
+
log_format=log_format,
|
|
140
|
+
port=str(port) if port else None,
|
|
141
|
+
host=host,
|
|
142
|
+
live_data_poll_rate=str(live_data_poll_rate),
|
|
143
|
+
use_legacy_code_server_behavior=False,
|
|
144
|
+
shutdown_pipe=None,
|
|
145
|
+
verbose=dg_context.config.cli.verbose,
|
|
146
|
+
workspace=[workspace_file],
|
|
147
|
+
)
|