Skip to content

cli: add langship pipelines validate command#4

Open
varshhhy7 wants to merge 3 commits into
open-gitagent:mainfrom
varshhhy7:feat/pipelines-validate
Open

cli: add langship pipelines validate command#4
varshhhy7 wants to merge 3 commits into
open-gitagent:mainfrom
varshhhy7:feat/pipelines-validate

Conversation

@varshhhy7
Copy link
Copy Markdown

@varshhhy7 varshhhy7 commented May 25, 2026

Add langship pipelines validate <file> — validates a pipeline
definition locally without contacting the server.

Checks:

  • valid JSON/YAML
  • nodes is a non-empty array
  • each node has id, name, type (non-empty, no duplicates)
  • exactly one trigger node (types from pkg/engine/parser.go)
  • connections reference valid node names
  • position is a pair of numbers (if present)

Usage:
langship pipelines validate examples/hello.json
langship pipelines validate prod-pipeline.yaml

Fixes #5

varshhhy7 added 3 commits May 25, 2026 21:35
Local-only validation that checks pipeline definitions before hitting the
server. Validates:
- valid JSON/YAML parsing
- nodes is a non-empty array
- each node has id, name, type (non-empty strings)
- no duplicate node names or ids
- exactly one trigger node (sync'd with pkg/engine/parser.go types)
- connections reference valid node names
- position is an array of 2 numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: add langship pipelines validate

1 participant