{"modulePath":"github.com/github/git-sizer","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package refopts\n\n## Functions\n\n```go\nfunc NewShowRefGrouper(rg sizes.RefGrouper, w io.Writer) sizes.RefGrouper\n```\nReturn a \\`sizes.RefGrouper\\` that wraps its argument and behaves like it except that it also logs its decisions to an \\`io.Writer\\`.\n\n## Types\n\n```go\ntype Configger interface {\n\tGetConfig(prefix string) (*git.Config, error)\n}\n```\nConfigger is an abstraction for a thing that can read gitconfig.\n\n```go\ntype RefGroupBuilder struct {\n\t// contains filtered or unexported fields\n}\n```\nRefGroupBuilder handles reference-related options and puts together a \\`sizes.RefGrouper\\` to be used by the main part of the program.\n\n```go\nfunc NewRefGroupBuilder(configger Configger) (*RefGroupBuilder, error)\n```\nNewRefGroupBuilder creates and returns a \\`RefGroupBuilder\\` instance.\n\n```go\nfunc (rgb *RefGroupBuilder) AddRefopts(flags *pflag.FlagSet)\n```\nAddRefopts adds the reference-related options to \\`flags\\`.\n\n```go\nfunc (rgb *RefGroupBuilder) Finish(defaultAll bool) (sizes.RefGrouper, error)\n```\nFinish collects the information gained from processing the options and returns a \\`sizes.RefGrouper\\`.\n\n","path":"github.com/github/git-sizer/internal/refopts","name":"refopts","synopsis":"","isRedistributable":true}
