23 lines
420 B
Go
23 lines
420 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"qc/internal/argparser"
|
|
)
|
|
|
|
func main() {
|
|
err, commit_type, commit_scope, shouldCommit, shouldStage, commit_message := argparser.Parse(os.Args[1:])
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "%s", err)
|
|
os.Exit(5)
|
|
}
|
|
fmt.Printf(`these are your args:
|
|
commit: %t
|
|
stage: %t
|
|
type: %s
|
|
scope: %s
|
|
message: %s
|
|
`, shouldCommit, shouldStage, commit_type, commit_scope, commit_message)
|
|
}
|