Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
5d3e86e2
Unverified
Commit
5d3e86e2
authored
Apr 21, 2023
by
Miguel Sempere
Committed by
GitHub
Apr 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(dbt): create plugin (#11635)
Co-authored-by:
Carlo Sala
<
carlosalag@protonmail.com
>
parent
07454029
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
CODEOWNERS
.github/CODEOWNERS
+1
-0
README.md
plugins/dbt/README.md
+29
-0
dbt.plugin.zsh
plugins/dbt/dbt.plugin.zsh
+23
-0
No files found.
.github/CODEOWNERS
View file @
5d3e86e2
...
...
@@ -10,3 +10,4 @@ plugins/universalarchive/ @Konfekt
plugins/wp-cli/ @joshmedeski
plugins/zoxide/ @ajeetdsouza
plugins/starship/ @axieax
plugins/dbt/ @msempere
plugins/dbt/README.md
0 → 100644
View file @
5d3e86e2
# dbt plugin
## Introduction
The
`dbt plugin`
adds several aliases for useful
[
dbt
](
https://docs.getdbt.com/
)
commands and
[
aliases
](
#aliases
)
.
To use it, add
`dbt`
to the plugins array of your zshrc file:
```
plugins=(... dbt)
```
## Aliases
| Alias | Command | Description |
| ------ | ------------------------------------------------ | ---------------------------------------------------- |
| dbtlm |
`dbt ls -s state:modified`
| List modified models only |
| dbtrm |
`dbt run -s state:modified`
| Run modified models only |
| dbttm |
`dbt test -m state:modified`
| Test modified models only |
| dbtrtm |
`dbtrm && dbttm`
| Run and test modified models only |
| dbtrs |
`dbt clean; dbt deps; dbt seed`
| Re-seed data |
| dbtfrt |
`dbtrs; dbt run --full-refresh; dbt test`
| Perform a full fresh run with tests |
| dbtcds |
`dbt docs generate; dbt docs serve`
| Generate docs without compiling |
| dbtds |
`dbt docs generate --no-compile; dbt docs serve`
| Generate and serve docs skipping doc. re-compilation |
## Maintainer
### [msempere](https://github.com/msempere)
plugins/dbt/dbt.plugin.zsh
0 → 100644
View file @
5d3e86e2
# list modified models only
alias
dbtlm
=
"dbt ls -s state:modified"
# run modified models only
alias
dbtrm
=
"dbt run -s state:modified"
# test modified models only
alias
dbttm
=
"dbt test -m state:modified"
# run and test modified models only
alias
dbtrtm
=
"dbtrm && dbttm"
# re-seed data
alias
dbtrs
=
"dbt clean; dbt deps; dbt seed"
# perform a full fresh run with tests
alias
dbtfrt
=
"dbtrs; dbt run --full-refresh; dbt test"
# generate and serve docs
alias
dbtcds
=
"dbt docs generate; dbt docs serve"
# generate and serve docs skipping doc. re-compilation
alias
dbtds
=
"dbt docs generate --no-compile; dbt docs serve"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment