Skip to content

Commit 82c39b9

Browse files
Merge pull request #24 from devoteamgcloud/main-bugfix
type change and readme naming update
2 parents d01e087 + a770723 commit 82c39b9

File tree

4 files changed

+388
-339
lines changed

4 files changed

+388
-339
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ File Saving: The generated LookML view files are saved to the specified target d
6060

6161
Generating the LookML Views using multiple tags. This will generate only the views for the models that match the tags.
6262

63-
```bash
6463
# Generate LookML views from a single file
65-
df2looker --source-path my_dataform_project/dataform-compile.json --target-dir my_looker_project/views --tags tag_1 tag_2
64+
```bash
65+
df2looker --source-file-path my_dataform_project/dataform-compile.json --target-dir my_looker_project/views --tags tag_1 tag_2
6666
```
6767

6868
Run Dataform2Looker in verbose mode
6969

70-
```bash
7170
# Generate LookML views from a single file
72-
df2looker --source-path my_dataform_project/dataform-compile.json --verbose
71+
```bash
72+
df2looker --source-file-path my_dataform_project/dataform-compile.json --verbose
7373
```
7474

7575
## Notes

dataform2looker/dataform2looker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def main(argv: Sequence[str] | None = None) -> int:
4545
)
4646

4747
parser.add_argument(
48-
"--source-file",
48+
"--source-file-path",
4949
type=Path,
5050
help="Path to the views file or directory containing views.",
5151
)
@@ -64,7 +64,7 @@ def main(argv: Sequence[str] | None = None) -> int:
6464
parser.add_argument(
6565
"--tags",
6666
help="Filter to dataform models using this tag",
67-
default=None,
67+
default=[],
6868
type=str,
6969
nargs="+",
7070
required=False,

0 commit comments

Comments
 (0)