Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svenfuchs/trsh
Experimental Travis CI Shell using API v3 in Go
https://github.com/svenfuchs/trsh
Last synced: 12 days ago
JSON representation
Experimental Travis CI Shell using API v3 in Go
- Host: GitHub
- URL: https://github.com/svenfuchs/trsh
- Owner: svenfuchs
- Created: 2018-04-02T18:25:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T21:19:55.000Z (over 6 years ago)
- Last Synced: 2024-10-26T22:40:47.726Z (2 months ago)
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trsh
Experimental Travis CI Shell (tr'sh, pronounced `ˈtrɪʃ`) in Go leveraging API
v3 for demo and educational purposes. Also uses [led-go](https://github.com/svenfuchs/led-go)
as a readline replacement.![trsh](https://user-images.githubusercontent.com/2208/41823678-84553fb2-7804-11e8-9bd9-45f2105f18a7.gif)
### Build
```
$ go build -o trsh
```### Interactive shell
```
$ ./trsh
trsh ~ repository find slug=svenfuchs/trsh
GET /repo/svenfuchs%2Ftrsh ...
{
"id": 18503283,
"name": "trsh",
"slug": "svenfuchs/trsh",
"description": "Playing with a Travis CI API v3 client in Go",
// ...
}trsh ~ user find id=8 | .login
"svenfuchs"
```### Arguments
```
$ ./trsh user find id=8
GET /user/8 ...
{
"id": 8,
"login": "svenfuchs",
"name": "Sven Fuchs",
// ...
}
```### Stdin
```
$ echo -e "user find id=8\nrepository find slug=svenfuchs/led-go" | ./trsh
GET /user/8 ...
{
"id": 8,
"login": "svenfuchs",
// ...
}
GET /repo/svenfuchs%2Fled-go ...
{
"id": 8,
"name": "led-go",
// ...
}
```