`--profile` missing from `quarto call engine`, `call build-ts-extension`, and `call typst-gather` --help
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 86/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- cli
Direzione di ricerca
Inizia in src/command/call/cmd.ts e confronta la gestione dei profili con appendLogOptions in src/core/log.ts. Esamina appendProfileArg in src/quarto-core/profile.ts, quindi controlla l’output dell’help per engine, build-ts-extension, typst-gather e axe. Il lavoro è completato quando i tre sottocomandi interessati mostrano coerentemente --profile senza modificare il comportamento di axe.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
quarto call engine, quarto call build-ts-extension, and quarto call typst-gather --help are all missing --profile, while quarto call axe --help has it:
$ quarto call typst-gather --help
...
Options:
-h, --help - Show this help.
--init-config - Generate a starter typst-gather.toml in current directory
--log <file> - Path to log file
--log-level <level> - Log level (debug, info, warning, error, critical)
--log-format <format> - Log format (plain, json-stream)
--quiet - Suppress console output.
$ quarto call axe --help
...
--log <file> - Path to log file
--log-level <level> - Log level (debug, info, warning, error, critical)
--log-format <format> - Log format (plain, json-stream)
--quiet - Suppress console output.
--profile - Active project profile(s)
--profile is registered as a global option in appendProfileArg:
This relies on cliffy's native global: true option inheritance, which per #8438 does not reliably reach every subcommand. appendLogOptions hit the same bug and works around it by manually forwarding the log/quiet options to every subcommand instead of trusting cliffy's inheritance:
appendProfileArg never got the same treatment, so it still depends on cliffy's inheritance and only reaches the last subcommand registered under call:
axe was added last (#14815) and is the only one that got --profile by coincidence. This also explains why quarto-web's automated reference docs lost --profile from quarto call typst-gather between v1.11.3 and v1.11.5, even though nothing in typst-gather's own command changed.
We could apply the same subcommand-forwarding pattern from appendLogOptions to appendProfileArg.
Related: #8438
- Lingua principale
- JavaScript
- Stelle
- 6k
- Fork
- 458
- Merge medio
- 1g 8h
- PR unite (30g)
- 42
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di quarto-dev/quarto-cli
-
binder bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
quarto-dev/quarto-cli#14907 · 3 commenti · 1 reazione ·
-
brand bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
quarto-dev/quarto-cli#14891 ·
-
brand bug html revealjs
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
quarto-dev/quarto-cli#14882 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
quarto-dev/quarto-cli#14875 ·
-
Percent scripts: accept raw-string (r""") and '''-delimited markdown cells, as jupytext writes them Apertaengines-jupyter enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
quarto-dev/quarto-cli#14850 · 2 commenti ·
Tutte le issue di quarto-dev/quarto-cli
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
getsentry/sentry-javascript#24577 · 1 commento ·
-
curation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
aemdemos/patients-stryker#253 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
clerk/javascript#9852 ·