Skip to content

Commit

Permalink
First time flow (#439)
Browse files Browse the repository at this point in the history
* clone sample repo, better output after dbt init

* add default target to initial profiles file

* change starter project to fishtown repo

* pep8

* add `dbt debug --config-dir` cmd

* pep8

* sample file tweaks

* add overwrite check + unit test


automatic commit by git-black, original commits:
  d15c0c6
  • Loading branch information
drewbanin authored and iknox-fa committed Feb 8, 2022
1 parent 09949ce commit a91411a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions core/dbt/clients/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def make_file(path: str, contents: str = "", overwrite: bool = False) -> bool:
"""
if overwrite or not os.path.exists(path):
path = convert_path(path)
with open(path, 'w') as fh:
with open(path, "w") as fh:
fh.write(contents)
return True

Expand Down Expand Up @@ -305,14 +305,14 @@ def path_is_symlink(path: str) -> bool:

def open_dir_cmd() -> str:
# https://docs.python.org/2/library/sys.html#sys.platform
if sys.platform == 'win32':
return 'start'
if sys.platform == "win32":
return "start"

elif sys.platform == 'darwin':
return 'open'
elif sys.platform == "darwin":
return "open"

else:
return 'xdg-open'
return "xdg-open"


def _handle_posix_cwd_error(exc: OSError, cwd: str, cmd: List[str]) -> NoReturn:
Expand Down
4 changes: 2 additions & 2 deletions core/dbt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ def _build_debug_subparser(subparsers, base_subparser):
'''
)
sub.add_argument(
'--config-dir',
action='store_true',
"--config-dir",
action="store_true",
help='''
If specified, DBT will show path information for this project
'''
Expand Down

0 comments on commit a91411a

Please sign in to comment.