d2cli

package
v0.0.0-...-e815181 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2023 License: MPL-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const GIF exportExtension = ".gif"
View Source
const LAYERS = "layers"
View Source
const PDF exportExtension = ".pdf"
View Source
const PNG exportExtension = ".png"
View Source
const PPTX exportExtension = ".pptx"
View Source
const SCENARIOS = "scenarios"
View Source
const STEPS = "steps"
View Source
const SVG exportExtension = ".svg"

Variables

View Source
var SUPPORTED_EXTENSIONS = []exportExtension{SVG, PNG, PDF, PPTX, GIF}

Functions

func DiscardSlog

func DiscardSlog(ctx context.Context) context.Context

TODO: remove after removing slog

func LayoutResolver

func LayoutResolver(ctx context.Context, ms *xmain.State, plugins []d2plugin.Plugin) func(engine string) (d2graph.LayoutGraph, error)

func Run

func Run(ctx context.Context, ms *xmain.State) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL