repo

package
v0.2.34 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DataRobotTemplateDetectPath is the path to the answers folder relative to CWD
	DataRobotTemplateDetectPath = ".datarobot/answers"
	// QuickstartScriptPath is the path to the quickstart scripts directory relative to CWD
	QuickstartScriptPath = ".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