copier

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 7 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) *exec.Cmd

func ExecAdd

func ExecAdd(repoURL string) error

func ExecUpdate

func ExecUpdate(yamlFile string, recopy, quiet, debug bool, overwrite bool) error

func Update added in v0.2.5

func Update(yamlFile string, recopy, quiet, debug bool, overwrite bool) *exec.Cmd

Types

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

Jump to

Keyboard shortcuts

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