github.com/nfisher/gitit@v0.0.7-0.20240131193748-bc8dd26542cc/main.go (about) 1 package main 2 3 import ( 4 "github.com/nfisher/gitit/cmd" 5 "os" 6 ) 7 8 func main() { 9 var input cmd.Flags 10 11 if len(os.Args) > 1 { 12 input.SubCommand = os.Args[1] 13 } 14 15 if len(os.Args) > 2 { 16 input.Name = os.Args[2] 17 } 18 19 os.Exit(cmd.Exec(input, os.Stdout)) 20 } 21 22 var example = `In stack %s 23 On branch %s 24 25 Stack: 26 001_migration 🚢 3629a61 27 * 002_api ✅ https://github.com/nfisher/gitit/pulls/110781 28 003_ui ❌ https://github.com/nfisher/gitit/pulls/110779 29 30 `