-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DCV-2893 dbt-coves setup: add new --template-url (#497)
* DCV-2893 dbt-coves setup: add new --setup-template-url flag * Rename to --template-url
- Loading branch information
1 parent
fc9a97f
commit 5868e28
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,10 @@ def register_parser(cls, sub_parsers, base_subparser): | |
help="Skip rendering results", | ||
default=False, | ||
) | ||
ext_subparser.add_argument( | ||
"--template-url", | ||
help="URL to the setup template repository", | ||
) | ||
ext_subparser.set_defaults(cls=cls, which="setup") | ||
cls.arg_parser = ext_subparser | ||
return ext_subparser | ||
|
@@ -136,7 +140,7 @@ def setup_datacoves(self): | |
for service in services: | ||
self.copier_context[service] = True | ||
copier.run_auto( | ||
src_path="[email protected]:datacoves/setup_template.git", | ||
src_path=self.get_config_value("template_url"), | ||
dst_path=self.repo_path, | ||
data=self.copier_context, | ||
quiet=self.get_config_value("quiet"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters