asdf-vm / asdf-vm/asdf

Allow setting active version to installed version in one step

Open
#2,229 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
25.6k
Forks
941
Avg merge
9h 24m
Merged PRs (30d)
3

Description

### Is your feature request related to a problem? Please describe

It's frustrating that installation and setting an active version are two distinct steps.

### Describe the proposed solution

Add the same switches from `asdf set` to `asdf install` such that, if provided, the `install` also runs `set` with the appropriate flag.

```bash
asdf install -u some_plugin latest # install and set at the user level
asdf install -p some_plugin latest # install and set at parent
asdf install -s some_plugin latest # install and set locally ... using -s as there's no equivalent
```

### Describe similar `asdf` features and why they are not sufficient

The above is possible with two commands; this feature request is just a qualify of life improvement.

### Describe other workarounds you've considered

Just running the two steps individually.

Contributor guide

Open the contributing guide

Research direction

Start at the CLI entry points for `asdf install` and `asdf set`, using the proposed `-u`, `-p`, and `-s` examples as the behavior to trace. Confirm that installation still works and that each supplied flag also activates the installed version at the corresponding scope; done means the combined commands replace the two-step workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.