mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-23 21:33:32 +00:00
fix(cli): clarify debug config output (#42860)
Co-authored-by: Dax Raad <d@ironbay.co>
This commit is contained in:
parent
174c0a742c
commit
7731d1235d
2 changed files with 3 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ const Root = Spec.make(typeof OPENCODE_CLI_NAME === "string" ? OPENCODE_CLI_NAME
|
|||
description: "Debugging and troubleshooting tools",
|
||||
commands: [
|
||||
Spec.make("agents", { description: "List all agents" }),
|
||||
Spec.make("config", { description: "Show resolved configuration" }),
|
||||
Spec.make("config", { description: "List configuration sources" }),
|
||||
],
|
||||
}),
|
||||
Spec.make("console", {
|
||||
|
|
|
|||
|
|
@ -10,9 +10,10 @@ describe("debug config command", () => {
|
|||
|
||||
expect(debug.exitCode).toBe(0)
|
||||
expect(debug.stdout).toContain("config")
|
||||
expect(debug.stdout).toContain("Show resolved configuration")
|
||||
expect(debug.stdout).toContain("List configuration sources")
|
||||
expect(config.exitCode).toBe(0)
|
||||
expect(config.stdout).toContain("opencode debug config [flags]")
|
||||
expect(config.stdout).toContain("List configuration sources")
|
||||
})
|
||||
|
||||
test("prints config entries from the invoking directory without reordering permissions", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue