-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move upgrader to a specific folder
- Loading branch information
Showing
5 changed files
with
299 additions
and
252 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//go:build !no_upgrade | ||
|
||
package cmd | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/evilmartians/lefthook/internal/lefthook" | ||
) | ||
|
||
var commands = [...]func(*lefthook.Options) *cobra.Command{ | ||
newVersionCmd, | ||
newAddCmd, | ||
newInstallCmd, | ||
newUninstallCmd, | ||
newRunCmd, | ||
newDumpCmd, | ||
newUpgradeCmd, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//go:build no_upgrade | ||
|
||
package cmd | ||
|
||
import ( | ||
"github.com/evilmartians/lefthook/internal/lefthook" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var commands = [...]func(*lefthook.Options) *cobra.Command{ | ||
newVersionCmd, | ||
newAddCmd, | ||
newInstallCmd, | ||
newUninstallCmd, | ||
newRunCmd, | ||
newDumpCmd, | ||
} |
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
Oops, something went wrong.