Skip to content

Jsonnet library that can generate jsonnetfile.json for jsonnet-bundler.

License

Notifications You must be signed in to change notification settings

crdsonnet/jsonnetfile-libsonnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonnetfile

jsonnetfile can generate jsonnetfile.json for jsonnet-bundler

Install

jb install github.com/crdsonnet/jsonnetfile-libsonnet/jsonnetfile@master

Usage

local jsonnetfile = import "github.com/crdsonnet/jsonnetfile-libsonnet/jsonnetfile/main.libsonnet";

jsonnetfile.new(legacyImports=false)

Index

Fields

fn new

new(legacyImports=true)

new creates a jsonnetfile object

fn withDependencies

withDependencies(value)

fn withDependenciesMixin

withDependenciesMixin(value)

fn withLegacyImports

withLegacyImports(value=true)

fn withVersion

withVersion(value)

obj dependencies

fn dependencies.withName

withName(value)

fn dependencies.withSingle

withSingle(value=true)

fn dependencies.withSource

withSource(value)

fn dependencies.withSourceMixin

withSourceMixin(value)

fn dependencies.withSum

withSum(value)

fn dependencies.withVersion

withVersion(value)

obj dependencies.source

fn dependencies.source.withGit
withGit(value)
fn dependencies.source.withGitMixin
withGitMixin(value)
fn dependencies.source.withLocal
withLocal(value)
fn dependencies.source.withLocalMixin
withLocalMixin(value)
obj dependencies.source.git
fn dependencies.source.git.withHost
withHost(value)
fn dependencies.source.git.withRepo
withRepo(value)
fn dependencies.source.git.withScheme
withScheme(value)
fn dependencies.source.git.withSubdir
withSubdir(value)
fn dependencies.source.git.withUser
withUser(value)
obj dependencies.source.local
fn dependencies.source.local.withDirectory
withDirectory(value)

About

Jsonnet library that can generate jsonnetfile.json for jsonnet-bundler.

Topics

Resources

License

Stars

Watchers

Forks