repo

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DataRobotRepoPath is the path to the DataRobot CLI folder relative to CWD
	DataRobotRepoPath = ".datarobot/cli"
	// 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/cli 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/cli 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