MCPcopy Index your code
hub / github.com/OpenSLO/oslo

github.com/OpenSLO/oslo @v0.13.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.13.0 ↗ · + Follow
25 symbols 89 edges 14 files 13 documented · 52% 5 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OpenSLO light theme


CLI tool for interacting with the OpenSLO specification!

Installation

Prebuilt binaries

Download prebuilt binaries from the published release assets.

Go install

go install github.com/OpenSLO/oslo/cmd/oslo@latest

Homebrew

brew install openslo/openslo/oslo

From Docker

For example, if you have an OpenSLO spec file in the current directory called my-service.yaml, and you wanted to validate it, the full command would be:

docker run -v "$(pwd):/manifests" ghcr.io/openslo/oslo:latest validate -f /manifests/my-service.yaml
# Valid!

From source

  1. Clone this repository.
  2. From the root of the project, run make install. This will build and install the binary into your GOPATH.

Usage

Validate

oslo validate will validate the provided OpenSLO YAML/JSON document(s).

Example:

oslo validate -f file1.yaml -f file2.yaml

Format

oslo fmt will format the provided OpenSLO YAML/JSON document(s).

Example:

oslo fmt -f file1.yaml -f file2.yaml

Core symbols most depended-on inside this repo

readRawSchema
called by 5
internal/files/reader.go
Discover
called by 3
internal/files/discover.go
printStderr
called by 3
internal/cli/validate.go
readObjectsFromRawData
called by 2
internal/files/reader.go
isStdin
called by 2
internal/files/reader.go
isURL
called by 2
internal/files/reader.go
Format
called by 2
internal/files/format.go
indentString
called by 2
internal/cli/validate.go

Shape

Function 25

Languages

Go96%
TypeScript4%

Modules by API surface

internal/files/reader.go7 symbols
internal/cli/validate.go3 symbols
cmd/oslo/main.go3 symbols
internal/files/format.go2 symbols
internal/scripts/format-cspell-config.js1 symbols
internal/pathutils/pathutils.go1 symbols
internal/files/reader_test.go1 symbols
internal/files/format_test.go1 symbols
internal/files/discover_test.go1 symbols
internal/files/discover.go1 symbols
internal/cli/root_test.go1 symbols
internal/cli/root.go1 symbols

For agents

$ claude mcp add oslo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page