Documentation ¶
Overview ¶
Package env provides the environment for the commands to run.
Index ¶
- type Env
- func (e *Env) InjectReader(r io.Reader)
- func (e *Env) InjectStoreError(err error)
- func (e *Env) ProvideStore(ctx context.Context, databaseURL string) (store.Store, error)
- func (e *Env) ReadFile(file string) ([]byte, error)
- func (e *Env) TestCommand(f func(*Env) *cobra.Command, args []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env defines the environment to run the commands.
func (*Env) InjectReader ¶
InjectReader sets the alternative reader to use in the env.
func (*Env) InjectStoreError ¶
InjectStoreError forces the in memory store to return an error.
func (*Env) ProvideStore ¶
ProvideStore returns the Store to use.
Click to show internal directories.
Click to hide internal directories.