0.1.8 • Published 4 years ago

@tilt.dev/tilt-inspector v0.1.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

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

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago