claims

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

README

claims

Terminal-based CLI for rendering claims via the claim-machinery API.

Prerequisites

  • Go 1.25.6+
  • Task (optional, for task automation)
  • claim-machinery API running (default: http://localhost:8080)

Getting Started

# Clone the repository
git clone https://github.com/stuttgart-things/claims.git
cd claims

# Install dependencies
go mod tidy

# Build and run
go build -o claims .
./claims render

Commands

Command Description
claims render Interactively render a claim template via API
claims version Print version information
render
claims render [flags]
Flag Short Description
--api-url -a API URL (default: $CLAIM_API_URL or http://localhost:8080)

Examples:

# Use default API URL
claims render

# Custom API URL
claims render --api-url http://api.example.com:8080

# Via environment variable
CLAIM_API_URL=http://api.example.com:8080 claims render

Configuration

Environment Variable Description Default
CLAIM_API_URL API base URL http://localhost:8080

Available Tasks

task --list
Task Description
task build Build the binary
task run Run the application
task test Run tests
task test-coverage Run tests with coverage report
task lint Run golangci-lint
task fmt Format code
task tidy Tidy and verify go modules
task clean Clean build artifacts

Project Structure

.
├── main.go           # Application entry point
├── cmd/
│   ├── root.go       # Root command setup
│   ├── render.go     # Render command implementation
│   ├── version.go    # Version command
│   └── logo.go       # ASCII logo rendering
├── go.mod            # Go module definition
├── Taskfile.yaml     # Task automation
├── catalog-info.yaml # Backstage component definition
└── README.md         # This file

License

See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL