🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@tilt.dev/tilt-inspector

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tilt.dev/tilt-inspector

A small debugging server to help inspect Tilt state

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 28 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts