Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dburriss/cdevent
A CLI tool for sending CDEvents
https://github.com/dburriss/cdevent
Last synced: 21 days ago
JSON representation
A CLI tool for sending CDEvents
- Host: GitHub
- URL: https://github.com/dburriss/cdevent
- Owner: dburriss
- License: mit
- Created: 2024-08-11T09:11:42.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T10:16:29.000Z (about 1 month ago)
- Last Synced: 2024-11-10T10:28:58.936Z (about 1 month ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdevent
A CLI tool for sending CDEvents
## Usage
### Service Deployed
```shell
./cdevent -e https://acme.com service deployed --id 1 --source zsh --subid xyz --envid local --artifact pkg:123 --custom team=team1,service=service-1
```Results in the following CloudEvent body:
```json
{
"context": {
"id": "1",
"source": "zsh",
"timestamp": "2024-09-10T04:55:25.428634Z",
"type": "dev.cdevents.service.deployed.0.1.1",
"version": "0.3.0"
},
"customData": {
"service": "service-1",
"team": "team1"
},
"subject": {
"content": {
"artifactId": "pkg:123",
"environment": {
"id": "local"
}
},
"id": "xyz",
"source": "zsh",
"type": "service"
}
}
```## Resources
- https://github.com/cdevents/spec/blob/v0.4.1/cloudevents-binding.md
- https://docs.rs/argfile/0.2.1/argfile/
- https://doc.rust-lang.org/cargo/guide/project-layout.html
- https://github.com/cdevents/sdk-rust/
- https://docs.rs/clap/latest/clap/index.html