init

package
v0.0.0-...-45cac8b Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(f *cmdutil.Factory) *cobra.Command

func NewCobraCmd

func NewCobraCmd(init *InitCmd) *cobra.Command

Types

type Fields

type Fields struct {
	ConfigDir string
	Force     bool
}

type InitCmd

type InitCmd struct {
	GetWorkDir func() (string, error)
	FileReader func(path string) ([]byte, error)
	WriteFile  func(filename string, data []byte, perm fs.FileMode) error
	Stat       func(path string) (fs.FileInfo, error)
	F          *cmdutil.Factory
}

func NewInitCmd

func NewInitCmd(f *cmdutil.Factory) *InitCmd

func (*InitCmd) Run

func (cmd *InitCmd) Run(fields *Fields) error

Jump to

Keyboard shortcuts

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