Documentation
¶
Overview ¶
Package summon does the heavy lifting of instanciating files or executing configured scripts on the user's machine.
You can control instantiation by using Options described below.
Index ¶
- func GetFs() afero.Fs
- type ConfigurableLister
- type ConfigurableRunner
- type Configurer
- type Driver
- type Lister
- type Option
- func All(all bool) Option
- func Args(args ...string) Option
- func Debug(enable bool) Option
- func Dest(dest string) Option
- func DryRun(enable bool) Option
- func ExecCmd(e command.ExecCommandFn) Option
- func Filename(filename string) Option
- func JSON(j string) Option
- func Raw(raw bool) Option
- func Ref(ref string) Option
- func ShowTree(tree bool) Option
- type Runner
- type Summon
- type Summoner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigurableLister ¶ added in v0.8.0
type ConfigurableLister interface { Configurer Lister }
ConfigurableLister allows configuration and listing.
type ConfigurableRunner ¶ added in v0.8.0
type ConfigurableRunner interface { Configurer Runner }
ConfigurableRunner is a runner that can be configured.
type Configurer ¶ added in v0.8.0
Configurer allows configuring a driver from variadic options.
type Driver ¶ added in v0.8.0
type Driver struct {
// contains filtered or unexported fields
}
Driver manages functionality of summon.
func (*Driver) Configure ¶ added in v0.8.0
Configure is used to extract options and customize the summon.Driver.
func (*Driver) ListInvocables ¶ added in v0.8.0
ListInvocables lists the invocables in the config file under the exec: key.
type Option ¶
type Option func(*options) error
Option allows specifying configuration settings from the user.
func Dest ¶
Dest specifies where the file(s) will be rooted. '-' is a special value representing stdout.
func ExecCmd ¶ added in v0.8.0
func ExecCmd(e command.ExecCommandFn) Option
ExecCmd allows changing the execution function for external processes.