apple / apple/container

[Request]: Add Environment Variable to Configure Default Progress Mode

Open
#1,406 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### Feature or enhancement request details

Add support for a `CONTAINER_CLI_PROGRESS` environment variable that allows users to set their preferred default progress mode (`none`, `ansi`, `plain`, or `color`) without passing `--progress` on every command.

Currently, users must specify `--progress color` (or `plain`, etc.) each time they run `container image pull`, `container image push`, or `container run`. An environment variable would let users set their preference once.

The `--progress` flag would continue to take precedence when explicitly provided, with the environment variable serving as the default when the flag is omitted.

This aligns with the transition from macOS user defaults to config files and environment variables for user preferences, as discussed in #1384.

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start by tracing progress handling in the `container image pull`, `container image push`, and `container run` command entry points, then inspect how existing configuration and environment variables are resolved. Done means `CONTAINER_CLI_PROGRESS` supplies the default for `none`, `ansi`, `plain`, or `color`, while an explicitly provided `--progress` value takes precedence; verify each command and the documented configuration transition discussed in #1384.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.