Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCommand ¶
Types ¶
type OutputArtifacts ¶
type OutputArtifacts struct { // Config points to the directory to which to write configuration. Config OutputToDirectory // Code overrides the directory in which to write new code (defaults to where the existing code lives). Code OutputToDirectory `marker:",optional"` }
OutputArtifacts outputs artifacts to different locations, depending on whether they're package-associated or not.
Non-package associated artifacts are output to the Config directory, while package-associated ones are output to their package's source files' directory, unless an alternate path is specified in Code.
func (OutputArtifacts) Open ¶
func (o OutputArtifacts) Open(pkg *loader.Package, itemPath string) (io.WriteCloser, error)
type OutputToDirectory ¶
type OutputToDirectory string
OutputToDirectory outputs each artifact to the given directory, regardless of if it's package-associated or not.
func (OutputToDirectory) Open ¶
func (o OutputToDirectory) Open(_ *loader.Package, itemPath string) (io.WriteCloser, error)
Click to show internal directories.
Click to hide internal directories.