6
0
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:
Grzegorz Dlugoszewski
2020-05-20 11:37:16 +02:00
parent 4b8b1d52f0
commit ac765c9c06
12 changed files with 196 additions and 30 deletions

24
cmd/git-list/main.go Normal file
View 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()
}