copier

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ComponentDetailsByURL       = map[string]Details{}
	ComponentDetailsByShortName = map[string]Details{}
	EnabledComponents           = make([]Details, 0, len(ComponentDetails))
	EnabledShortNames           = make([]string, 0, len(ComponentDetails))
)

Map the repo listed in an "answer file" to relevant info for component To Note: Not all of the README contents have been added

View Source
var ComponentDetails = []Details{
	{

		Name:      "Agent",
		ShortName: "agent",
		RepoURL:   "https://github.com/datarobot-community/af-component-agent.git",
		Enabled:   true,
		// contains filtered or unexported fields
	},
	{

		Name:      "Base",
		ShortName: "base",
		RepoURL:   "https://github.com/datarobot/af-component-base.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "FastAPI backend",
		ShortName: "fastapi",
		RepoURL:   "https://github.com/datarobot/af-component-fastapi-backend.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "FastMCP backend",
		ShortName: "fastmcp",
		RepoURL:   "https://github.com/datarobot/af-component-fastmcp-backend.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "LLM",
		ShortName: "llm",
		RepoURL:   "https://github.com/datarobot/af-component-llm.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "React",
		ShortName: "react",
		RepoURL:   "https://github.com/datarobot/af-component-react.git",
		// contains filtered or unexported fields
	},
}

Functions

func Add added in v0.2.5

func Add(repoURL string, data map[string]interface{}) *exec.Cmd

Add creates a copier copy command with optional --data arguments

func ExecAdd

func ExecAdd(repoURL string, data map[string]interface{}) error

ExecAdd executes a copier copy command with optional --data arguments

func ExecUpdate

func ExecUpdate(yamlFile string, data map[string]interface{}, flags UpdateFlags) error

ExecUpdate executes a copier update command with optional --data arguments

func Update added in v0.2.5

func Update(yamlFile string, data map[string]interface{}, flags UpdateFlags) *exec.Cmd

Update creates a copier update command with optional --data arguments

Types

type AddFlags added in v0.2.27

type AddFlags struct {
	DataArgs []string
	DataFile string
}

type Answers

type Answers struct {
	FileName         string
	ComponentDetails Details

	Repo string `yaml:"_src_path"`
}

func AnswersFromPath

func AnswersFromPath(path string, all bool) ([]Answers, error)

type Details added in v0.2.4

type Details struct {
	ReadMeContents string

	Name      string
	ShortName string
	RepoURL   string
	Enabled   bool
	// contains filtered or unexported fields
}

TODO: I don't know what we should add here

type UpdateFlags added in v0.2.27

type UpdateFlags struct {
	DataArgs  []string
	DataFile  string
	Recopy    bool
	VcsRef    string
	Quiet     bool
	Overwrite bool
}

Jump to

Keyboard shortcuts

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