Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Add completion to list of cmds which bypass init
Browse files Browse the repository at this point in the history
  • Loading branch information
DomBlack committed Nov 3, 2020
1 parent 88745b9 commit 36d3e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var rootCmd = &cobra.Command{
Version: utils.DdbtVersion,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
// Do not run init if we're running info commands which aren't actually going to execute operate on a project
if cmd != versionCmd && cmd.Name() != "help" {
if cmd != versionCmd && cmd != completionCmd && cmd.Name() != "help" {
initDDBT()
}
},
Expand Down

0 comments on commit 36d3e7f

Please sign in to comment.