enum

Fluxion::ToolBackend

Inherits Enum < Comparable < Value < Object

Language- and ecosystem-level installers used by tool-packages.

Kept separate from PackageManager because these install into the user's home, need no sudo (except snap), and each has its own name grammar.

Constants

CargoBinstall = 0
Cargo = 1
Snap = 2
Pipx = 3
UvTool = 4
NpmGlobal = 5
GoInstall = 6

Class methods

config_names
Source
from_config?(value : String | Nil) : self | Nil
Source

Instance methods

cargo?

Returns true if this enum value equals Cargo

Source
cargo_binstall?

Returns true if this enum value equals CargoBinstall

Source
command

The executable that must be on PATH. Note that uv-tool runs uv and npm-global runs npm — the backend id names the install strategy, not the binary.

Source
config_name
Source
go_install?

Returns true if this enum value equals GoInstall

Source
install_argv(package : ToolPackage) : Array(String)
Source
npm_global?

Returns true if this enum value equals NpmGlobal

Source
pipx?

Returns true if this enum value equals Pipx

Source
snap?

Returns true if this enum value equals Snap

Source
to_s(io : IO) : Nil

Appends a String representation of this enum member to the given io.

See also: to_s.

Source
uv_tool?

Returns true if this enum value equals UvTool

Source