repository

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmd

func ExecCmd(name string, args []string, dir *string) (string, error)

Types

type GitSourcesRootCommander

type GitSourcesRootCommander struct {
	Config GitSourcesRootConfig
}

func (*GitSourcesRootCommander) Clone

func (r *GitSourcesRootCommander) Clone(path string) error

func (*GitSourcesRootCommander) Exists

func (r *GitSourcesRootCommander) Exists(p string) (bool, error)

type GitSourcesRootConfig

type GitSourcesRootConfig struct {
	Url         string             `json:"url"`
	FastForward *bool              `json:"fastForward,omitempty"`
	Remotes     *map[string]string `json:"remotes,omitempty"`
}

func (*GitSourcesRootConfig) Commander

func (*GitSourcesRootConfig) Directory

func (c *GitSourcesRootConfig) Directory(root string) (string, error)

func (*GitSourcesRootConfig) Name

func (c *GitSourcesRootConfig) Name() (string, error)

func (*GitSourcesRootConfig) VcsType

func (c *GitSourcesRootConfig) VcsType() *string

type ProjectEntry

type ProjectEntry struct {
	Name      string
	Directory string
	VcsType   *string

	Commander SourcesRootCommander
}

type RawSourcesRootCommander

type RawSourcesRootCommander struct{}

func (*RawSourcesRootCommander) Clone

func (r *RawSourcesRootCommander) Clone(_ string) error

func (*RawSourcesRootCommander) Exists

func (r *RawSourcesRootCommander) Exists(path string) (bool, error)

type RawSourcesRootConfig

type RawSourcesRootConfig struct {
	Path string `json:"path"`
}

func (*RawSourcesRootConfig) Commander

func (*RawSourcesRootConfig) Directory

func (c *RawSourcesRootConfig) Directory(_ string) (string, error)

func (*RawSourcesRootConfig) Name

func (c *RawSourcesRootConfig) Name() (string, error)

func (*RawSourcesRootConfig) VcsType

func (c *RawSourcesRootConfig) VcsType() *string

type SourcesRootCommander

type SourcesRootCommander interface {
	Clone(string) error
	Exists(string) (bool, error)
}

type SourcesRootConfig

type SourcesRootConfig interface {
	Name() (string, error)
	Directory(string) (string, error)
	Commander() SourcesRootCommander
	VcsType() *string
}

type SourcesRootFlags

type SourcesRootFlags struct {
	VscSourcesRoot string
}

func (*SourcesRootFlags) AddFlags

func (f *SourcesRootFlags) AddFlags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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