asdf-vm / asdf-vm/asdf

Add `--quiet` parameter to `asdf install`

Open
#1,075 1 comment 12 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

As part of our normal setup scripts we tend to add `asdf install | sed '/is already installed/d'` so we can reduce the terminal noise when nothing needs to be done.

### Describe the proposed solution

I would like to see a `-q`/`--quiet` parameter being added to `asdf install`, or simply a `ASDF_QUIET=1` / `QUIET=1` env variable I can set in our setup scripts that would work for all commands.

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

None.

### Describe other workarounds you've considered

Adding a sed pipe where necessary.
```
asdf install | sed '/is already installed/d'
```

Contributor guide

Open the contributing guide

Research direction

Start at the implementation of the `asdf install` command and trace how its output is produced when versions are already installed. Decide whether the accepted interface is a `-q`/`--quiet` flag or an environment variable, then verify that setup scripts can suppress the unwanted output without changing normal installation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.