Skip to content

goga config

Read and output configuration values from .goga/config.yml.

Synopsis

goga config OPTION [OPTION]...

Description

goga config loads the project configuration and prints the requested values to stdout. Options are specified as dot-notation paths that traverse the configuration data structure.

The alias language can be used in place of lang for convenience.

Arguments

Argument Required Description
OPTION yes One or more dot-notation paths to configuration values (at least one required).

Output

Each requested option is printed with a comment header followed by the value:

  • Scalar values (str, int, bool) are printed as plain text.
  • null values are printed as null.
  • Complex values (dict, dataclass) are printed as YAML.

Multiple options are separated by a blank line.

Examples

Read the project language:

goga config lang

Read the entire build configuration:

goga config build

Read the build image and the task executor agent:

goga config build.image build.task_executor.agent

Use the language alias:

goga config language

Configuration File

Values are read from .goga/config.yml. A minimal configuration:

language: python
build:
  image: qarium/goga-python-3.12:1.0
  task_executor:
    agent: claude
    env: {}

Exit Codes

Code Meaning
0 All requested options found and printed
1 Configuration file not found, invalid, or requested option does not exist