posit-dev / posit-dev/air

Add `--config` argument to CLI

Open
#111 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
446
Forks
32
Avg merge
16h 48m
Merged PRs (30d)
1

Description

Consider the ruff/cargo approach of --config for overriding configuration settings rather than shoving them all in the command line api.

Their thought process is that you should not be setting things like --indent-width at the cli most of the time, that prevents you and your colleagues from having identical formatting experiences. Instead you should rely on the presence of an air.toml to hold the configuration details. But sometimes it is still useful to override this.

https://docs.astral.sh/ruff/configuration/#the-config-cli-flag

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CLI argument definitions and configuration-loading entry point, then review the linked Ruff configuration flag behavior. Confirm how an explicit --config value should override normal configuration discovery and add focused CLI/configuration tests. Done means users can supply configuration through --config without moving every setting into command-line flags.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.