mirror of
https://github.com/taigrr/gico.git
synced 2026-04-01 18:58:59 -07:00
update deps, instructions
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/taigrr/gico/types"
|
||||
)
|
||||
|
||||
var days [366]int
|
||||
|
||||
func init() {
|
||||
// parse configs
|
||||
// choose action from CLI
|
||||
}
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
args := flag.Args()
|
||||
if len(args) < 1 {
|
||||
printGraph()
|
||||
os.Exit(0)
|
||||
}
|
||||
switch args[0] {
|
||||
// TODO use cobra-cli instead of switch case
|
||||
case "inc", "increment", "add":
|
||||
increment()
|
||||
case "graph":
|
||||
printGraph()
|
||||
case "loadRepo":
|
||||
loadRepo()
|
||||
default:
|
||||
printHelp()
|
||||
}
|
||||
}
|
||||
|
||||
func NewDataSet() types.DataSet {
|
||||
return make(types.DataSet)
|
||||
}
|
||||
|
||||
func loadRepo() {
|
||||
}
|
||||
|
||||
func readCommitDB() types.DataSet {
|
||||
ds := types.DataSet{}
|
||||
return ds
|
||||
}
|
||||
|
||||
func printHelp() {
|
||||
fmt.Println("help:")
|
||||
}
|
||||
|
||||
func increment() {
|
||||
commits := readCommitDB()
|
||||
// crea
|
||||
fmt.Printf("%v\n", commits)
|
||||
}
|
||||
|
||||
func printGraph() {
|
||||
fmt.Println("printGraph")
|
||||
}
|
||||
Reference in New Issue
Block a user