mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 23:14:43 +00:00
Add cobra commands and update project folder structure
This commit is contained in:
24
cmd/git-list/main.go
Normal file
24
cmd/git-list/main.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var cmd = &cobra.Command{
|
||||
Use: "git-list",
|
||||
Short: "git list",
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
if err := cmd.Execute(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
Execute()
|
||||
}
|
||||
Reference in New Issue
Block a user