- Notifications
You must be signed in to change notification settings - Fork36
CLI tool for the OpenSLO spec
License
NotificationsYou must be signed in to change notification settings
OpenSLO/oslo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation

CLI tool for interacting with theOpenSLO specification!
Download prebuilt binaries from thepublished release assets.
go install github.com/OpenSLO/oslo/cmd/oslo@latest
brew install openslo/openslo/oslo
For example, if you have an OpenSLO spec file in the current directory calledmy-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!
- Clone this repository.
- From the root of the project, run
make install
.This will build and install the binary into yourGOPATH
.
oslo validate
will validate the provided OpenSLO YAML/JSON document(s).
Example:
oslo validate -f file1.yaml -f file2.yaml
oslo fmt
will format the provided OpenSLO YAML/JSON document(s).
Example:
oslo fmt -f file1.yaml -f file2.yaml
About
CLI tool for the OpenSLO spec