repo

package
v0.2.49 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DataRobotTemplateDetectAnswersPath is the path to the answers folder relative to CWD
	DataRobotTemplateDetectAnswersPath = ".datarobot/answers"
	// DataRobotTemplateDetectCliPath path to the CLI config folder relative to CWD
	DataRobotTemplateDetectCliPath = ".datarobot/cli"
	// QuickstartScriptPath is the path to the quickstart scripts directory relative to CWD
	QuickstartScriptPath = ".datarobot/cli/bin"
	// LocalPluginDir is the project-local plugin directory relative to CWD
	LocalPluginDir = ".datarobot/cli/bin"
)

Variables

This section is empty.

Functions

func FindRepoRoot

func FindRepoRoot() (string, error)

FindRepoRoot walks up the directory tree from the current directory looking for a .datarobot/answers folder to determine if we're inside a DataRobot repository. It stops searching when it reaches the user's home directory or finds a .git folder. Returns the path to the repository root if found, or an empty string if not found.

func IsInRepo

func IsInRepo() bool

IsInRepo checks if the current directory is inside a DataRobot repository by looking for a .datarobot/answers folder in the current or parent directories.

func IsInRepoRoot added in v0.2.0

func IsInRepoRoot() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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