migrate

package
v0.0.0-...-3133d3c Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMigrateCmd

func NewMigrateCmd() *cobra.Command

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

Jump to

Keyboard shortcuts

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