The repo module provides functions for declaring repository configurations.

Allowed in

  • Top level of repo.ocu.star file only

Usage

Load the module:

load("github.com/ocuroot/sdk/v0/repo.star", "repo")

Example

# Define a repository with a unique ID
repo(id="my-service-repo")

# Define a repository for local development
repo(id="localhost")

# Define a repository for a specific environment
repo(id="prod-services")

API Reference

repo(id)

Declares a repository configuration.

Arguments

  • id: Unique repository identifier within your organization, used to reference the repository within Ocuroot state and from other repositories

Returns

  • None

Stubs

def repo(id):
    """
    Declares a repository config.

    Args:
        id: The ID of the repository. This is used to reference the repository within Ocuroot state and from other repositories. It should be unique within your organization.
    """
    pass