Versions in this module Expand all Collapse all v0 v0.1.1 Feb 23, 2020 Changes in this version + func Version() string + type DefaultSession struct + func (s *DefaultSession) Err() io.Writer + func (s *DefaultSession) ExitOnErr(err error, msg string, code int) + func (s *DefaultSession) ExitOnErrShort(err error, msg string, code int) + func (s *DefaultSession) ExitOnErrsShort(errs []error, code int) + func (s *DefaultSession) Exitf(code int, format string, a ...interface{}) + func (s *DefaultSession) In() io.Reader + func (s *DefaultSession) OnSignal(sig os.Signal, f func(os.Signal)) (cancel func()) + func (s *DefaultSession) Out() io.Writer + func (s *DefaultSession) SetErr(w io.Writer) + func (s *DefaultSession) SetIn(r io.Reader) + func (s *DefaultSession) SetOut(w io.Writer) + type Input struct + Args []string + ArgsAfterDash []string + ArgsBeforeDash []string + type Session interface + Err func() io.Writer + ExitOnErr func(err error, msg string, code int) + ExitOnErrShort func(err error, msg string, code int) + ExitOnErrsShort func(errs []error, code int) + Exitf func(code int, format string, a ...interface{}) + In func() io.Reader + OnSignal func(s os.Signal, do func(os.Signal)) (cancel func()) + Out func() io.Writer + SetErr func(io.Writer) + SetIn func(io.Reader) + SetOut func(io.Writer) v0.1.0 Oct 29, 2019 Changes in this version + type IO struct + func (h *IO) Err() io.Writer + func (h *IO) Exit(code int, a ...interface{}) + func (h *IO) ExitOnErr(err error, msg string, code int) + func (h *IO) ExitOnErrShort(err error, msg string, code int) + func (h *IO) ExitOnErrsShort(errs []error, code int) + func (h *IO) Exitf(code int, format string, a ...interface{}) + func (h *IO) In() io.Reader + func (h *IO) OnSignal(s os.Signal, f func(os.Signal)) (cancel func()) + func (h *IO) Out() io.Writer + func (h *IO) SetErr(w io.Writer) + func (h *IO) SetIn(r io.Reader) + func (h *IO) SetOut(w io.Writer) + type Mixin interface + BindCobraFlags func(cmd *cobra.Command) (requiredFlags []string) + Name func() string + type PostRun interface + PostRun func(ctx context.Context) + type PreRun interface + PreRun func(ctx context.Context, args []string) error + type Responder interface + Err func() io.Writer + In func() io.Reader + OnSignal func(s os.Signal, do func(os.Signal)) (cancel func()) + Out func() io.Writer + SetErr func(io.Writer) + SetIn func(io.Reader) + SetOut func(io.Writer)