backends

package
v0.0.0-...-9ce4fc3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package backends contains the language-specific UPM backends, and logic for selecting amongst them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackend

func GetBackend(ctx context.Context, language string) api.LanguageBackend

GetBackend returns the language backend for a given --lang argument value. If none is applicable, it exits the process.

func SetupAll

func SetupAll()

SetupAll panics if any registered language backend does not implement its mandatory fields. It also assigns defaults for all registered language backends.

Types

type BackendInfo

type BackendInfo struct {
	Name      string
	Available bool
}

func GetBackendNames

func GetBackendNames() []BackendInfo

GetBackendNames returns a slice of the canonical names (e.g. python-python3-poetry, not just python3) for all the backends listed in languageBackends.

Directories

Path Synopsis
Package dart provides backends for Dart (https://dart.dev) using the Dart package manager Pub.dev (https://pub.dev)
Package dart provides backends for Dart (https://dart.dev) using the Dart package manager Pub.dev (https://pub.dev)
Package dotnet provides a backend for c# using dotnet and nuget.org
Package dotnet provides a backend for c# using dotnet and nuget.org
Package elisp provides a backend for Emacs Lisp using Cask.
Package elisp provides a backend for Emacs Lisp using Cask.
Package java provides a backend for Java using maven.
Package java provides a backend for Java using maven.
Package nodejs provides backends for Node.js using Yarn, PNPM and NPM.
Package nodejs provides backends for Node.js using Yarn, PNPM and NPM.
Package python provides backends for Python 2 and 3 using Poetry and pip.
Package python provides backends for Python 2 and 3 using Poetry and pip.
Package ruby provides a backend for Ruby using Bundler.
Package ruby provides a backend for Ruby using Bundler.
Package rust provides a backend for Rust using Cargo.
Package rust provides a backend for Rust using Cargo.

Jump to

Keyboard shortcuts

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