Slide 19
Slide 19 text
Do ONE thing well
Don’t worry, your tool will be more and more complex (e.g., tcnksm/ghr)
flags.StringVar(&githubAPIOpts.OwnerName, []string{"u", "-username"}, "", "")
flags.StringVar(&githubAPIOpts.RepoName, []string{"r", "-repository"}, "", "")
flags.StringVar(&githubAPIOpts.Token, []string{"t", "-token"}, "", "")
flags.StringVar(&githubAPIOpts.Commitish, []string{"c", "-commitish"}, "", "")
flags.BoolVar(&githubAPIOpts.Draft, []string{"-draft"}, false, "")
flags.BoolVar(&githubAPIOpts.Prerelease, []string{"-prerelease"}, false, "")
flags.IntVar(&ghrOpts.Parallel, []string{"p", "-parallel"}, -1, "")
flags.BoolVar(&ghrOpts.Replace, []string{"-replace"}, false, "")
flags.BoolVar(&ghrOpts.Delete, []string{"-delete"}, false, "")
flags.BoolVar(&stat, []string{"-stat"}, false, “")
version := flags.Bool([]string{"v", "-version"}, false, "")
debug := flags.Bool([]string{"-debug"}, false, "")