-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 3c894d0.
- Loading branch information
Showing
39 changed files
with
237 additions
and
1,319 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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -18,4 +18,6 @@ var ( | |
} | ||
) | ||
|
||
func init() {} | ||
func init() { | ||
rootCmd.AddCommand(docCmd) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,6 @@ var ( | |
} | ||
) | ||
|
||
func init() {} | ||
func init() { | ||
rootCmd.AddCommand(listCmd) | ||
} |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
Package cmd initializes all commands (including root command) for the HkUp CLI. | ||
Additionally, the package holds all tests for commands. | ||
*/ | ||
package cmd | ||
|
||
// NOTE: This file is for documentation purposes and should be kept empty. | ||
// Note: This file should be kept empty. |
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 |
---|---|---|
|
@@ -18,4 +18,6 @@ var ( | |
} | ||
) | ||
|
||
func init() {} | ||
func init() { | ||
rootCmd.AddCommand(removeCmd) | ||
} |
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 |
---|---|---|
@@ -1,39 +1,23 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/iton0/hkup-cli/cmd/config" | ||
"github.com/iton0/hkup-cli/cmd/template" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var ( | ||
// version holds the centralized version of HkUp. | ||
// It is updated to the latest release version at build time of the binaries. | ||
// | ||
// INFO: look at the .github/workflows/release-please.yml to view how version | ||
// is updated. | ||
version = "dev" | ||
|
||
rootCmd = &cobra.Command{ | ||
Use: "hkup", | ||
Short: "hkup CLI", | ||
Long: `hkup is a management tool for git hooks`, | ||
Version: version, | ||
Args: cobra.MinimumNArgs(1), | ||
Version: "0.2.1", | ||
} | ||
) | ||
|
||
func init() { | ||
rootCmd.AddCommand(initCmd) | ||
rootCmd.AddCommand(addCmd) | ||
rootCmd.AddCommand(removeCmd) | ||
rootCmd.AddCommand(template.RootCmd) | ||
rootCmd.AddCommand(config.RootCmd) | ||
rootCmd.AddCommand(docCmd) | ||
rootCmd.AddCommand(listCmd) | ||
} | ||
func init() {} | ||
|
||
// Execute serves as a wrapper for the Cobra API's Execute function, | ||
// allowing it to be called from the [github.com/iton0/hkup-cli] package. | ||
// allowing it to be called from the main package. | ||
func Execute() { | ||
rootCmd.Execute() | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.