@tilt.dev/tilt-inspector

0.1.8 • Public • Published

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, '  '));
  });

Readme

Keywords

none

Package Sidebar

Install

npm i @tilt.dev/tilt-inspector

Weekly Downloads

23

Version

0.1.8

License

Apache-2.0

Unpacked Size

149 MB

Total Files

5225

Last publish

Collaborators

  • nicks