Crates.io | asdfg |
lib.rs | asdfg |
version | 0.2.0 |
source | src |
created_at | 2020-01-07 12:22:21.469324 |
updated_at | 2023-10-06 11:10:31.487631 |
description | Installing global asdf packages from a YAML config |
homepage | |
repository | https://github.com/paulgoetze/asdfg |
max_upload_size | |
id | 196118 |
size | 62,889 |
Installing global asdf packages from a YAML config.
asdfg requires asdf to be installed and allows to configure and install/update multiple versions of asdf-plugins by a single cli command.
Install it via cargo:
$ cargo install asdfg
or install it manually:
asdfg
binary file from https://github.com/paulgoetze/asdfg/releases.sudo chmod +x asdfg
asdfg
executable to your system pathYou can open the asdfg YAML configuration file with your default editor by running:
$ asdfg config open
The YAML config is by default stored in ~/.asdfg/config.yaml
. You can customise the config path with the --config
or -c
option.
Add the asdf packages you want to install with their respective versions here, e.g.:
# ~/.asdfg/config.yaml
rust:
- 1.39.0
- latest
python: latest
erlang: latest
elixir:
- 1.9.3
- latest
golang: latest
The keys must match an asdf plugin name, the version(s) can either be a single value or a list of versions. All version must be available via the asdf plugin. The last version for each asdf plugin is set to be the globally used version, when running:
$ asdfg install
In order to install all configured version of a specific asdf plugin, run:
$ asdfg install <plugin-name>
For further commands, please have a look at the cli documentation:
$ asdfg --help
asdfg – Installing global asdf packages from a YAML config.
Copyright (C) 2020, Paul Götze
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see https://www.gnu.org/licenses/.