https://github.com/tilt-dev/tilt-inspector
A small debugging server to help inspect Tilt state
https://github.com/tilt-dev/tilt-inspector
Last synced: about 1 year ago
JSON representation
A small debugging server to help inspect Tilt state
- Host: GitHub
- URL: https://github.com/tilt-dev/tilt-inspector
- Owner: tilt-dev
- License: apache-2.0
- Created: 2021-04-22T15:51:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T00:03:11.000Z (over 3 years ago)
- Last Synced: 2025-04-13T03:16:37.235Z (about 1 year ago)
- Language: TypeScript
- Size: 803 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tilt-inspector
A small debugging server to help inspect Tilt state
## Start
Run:
```
npm run start
```
## API Machinery
This server uses openapi/swagger and the Kubernetes API machinery
to generate a typescript client for the Tilt API server.
To regenerate it:
- Make sure Tilt is running. You'll need a running Tilt server to generate the openapi spec.
- In this directory, run the openapi spec generator:
```
tilt dump openapi > ./src/gen/swagger.json.original
```
- In this directory, run the Kubernetes client generator:
```
make genapi
```
## API Client
Eventually, we should break out the typescript client into its own package.
But for now, you can import it directly:
```
// Connect to a running Tilt server and print the session data.
const client = require('./src/client').newTiltClient();
client.listSession().
then((res) => {
console.log(JSON.stringify(res.body.items, null, ' '));
});
```