Skip to main content

Extracts import dependencies from a Jsonnet file

Project description

get-jsonnet-dependencies

Extracts import dependencies from a Jsonnet file

Usage

> pip install get-jsonnet-dependencies
> get-jsonnet-dependencies -
> local thing = import "thing.jsonnet";
thing.jsonnet
> local amoguise = import @"C:\Users\sus\Documents\amoguise.libsonnet";
C:\Users\sus\Documents\amoguise.libsonnet
> local a = import "a.jsonnet"; local b = importstr "b.txt";
a.jsonnet
b.txt

Pass a list of files to extract dependencies from

Passing - means to take extract dependencies from stdin

No arguments means get-jsonnet-dependencies -

Note that imports spanning multiple lines won't be found by this script

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get-jsonnet-dependencies-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

get_jsonnet_dependencies-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page