Documentation ¶
Index ¶
- func NewMigrateCmd() *cobra.Command
- type MigrateConfig
- func (c *MigrateConfig) Additional() []string
- func (c *MigrateConfig) CommaRune() rune
- func (c *MigrateConfig) ExcludeRegex() []*regexp.Regexp
- func (c *MigrateConfig) IncludeRegex() []*regexp.Regexp
- func (c *MigrateConfig) NewColumnIndex() int
- func (c *MigrateConfig) OldColumnIndex() int
- func (c *MigrateConfig) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMigrateCmd ¶
Types ¶
type MigrateConfig ¶
type MigrateConfig struct { // shared flags CSVPath string `koanf:"csv" short:"c" description:"path to csv mapping file"` Comma string `koanf:"separator" short:"s" description:"column separator character in csv"` OldColumn string `koanf:"old" short:"o" description:"column name or index (starting with 0) containing the old [git] url"` NewColumn string `koanf:"new" short:"n" description:"column name or index (starting with 0) containing the new [git] url"` RemoteName string `koanf:"remote" short:"r" description:"name of the remote url"` BranchName string `` /* 151-byte string literal not displayed */ // subcommand specific flags Include string `koanf:"include" short:"i" description:"',' separated list of include file paths matching regular expression"` Exclude string `koanf:"exclude" short:"e" description:"',' separated list of exclude file paths matching regular expression"` AdditionalFiles string `koanf:"copy" description:"moves specified files or directories into your repository (, separated)"` // contains filtered or unexported fields }
func (*MigrateConfig) Additional ¶
func (c *MigrateConfig) Additional() []string
func (*MigrateConfig) CommaRune ¶
func (c *MigrateConfig) CommaRune() rune
func (*MigrateConfig) ExcludeRegex ¶
func (c *MigrateConfig) ExcludeRegex() []*regexp.Regexp
func (*MigrateConfig) IncludeRegex ¶
func (c *MigrateConfig) IncludeRegex() []*regexp.Regexp
func (*MigrateConfig) NewColumnIndex ¶
func (c *MigrateConfig) NewColumnIndex() int
func (*MigrateConfig) OldColumnIndex ¶
func (c *MigrateConfig) OldColumnIndex() int
func (*MigrateConfig) Validate ¶
func (c *MigrateConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.