apply

package
v0.0.0-...-78aedfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "apply",
	Short: "accept skeleton to project",
	Long: `accept skeleton to project files.
Be careful, it would replace previous skeleton blocks.`,
	RunE: func(cmd *cobra.Command, args []string) error {
		factory := config.NewFactory()
		if factory == nil {
			return errors.New("error constructing config factory")
		}
		useCase := apply.NewApply(factory, readme.NewPlugin(afero.NewOsFs(), registry.BinaryTemplatesRegistry{}))
		err := useCase.Execute()
		if err != nil {
			return err
		}
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL