context

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(ctx context.Context) (*config.Config, error)

Config will retrieve the .tscrc.json configuration from the provided context.

func Diagnostics

func Diagnostics(ctx context.Context) (*diagnostics.Notifier, error)

Diagnostics will retrieve the diagnostics notifier from the provided context.

func FileSystem

func FileSystem(ctx context.Context) (*filesystem.FileSystem, error)

FileSystem will retrieve the FileSystem object from the provided context.

func WithConfig

func WithConfig(ctx context.Context, conf *config.Config) context.Context

WithConfig will create a context that contains a .tscrc.json configuration.

func WithDiagnostics

func WithDiagnostics(ctx context.Context, diags *diagnostics.Notifier) context.Context

WithDiagnostics will create a context that contains a diagnostics notifier.

func WithFileSystem

func WithFileSystem(ctx context.Context, fs *filesystem.FileSystem) context.Context

WithFileSystem will create a context that contains a file system for working with files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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