You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7d77397
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cli): print one configuration line by default
- reduce the CLI banner to the credential source unless --verbose
- print the env-file line too when a command fails
- omit the MCP stdio hint from CLI error messages
- flush the banner so it survives a buffered stderr
Copy file name to clipboardExpand all lines: docs/cli-and-mcp.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,9 @@ Global options apply to every command:
78
78
-`--json` / `-j` writes machine-readable JSON to stdout and keeps osw's own
79
79
progress output on stderr, so it pipes cleanly into `jq`.
80
80
-`--read-only` refuses write operations.
81
-
-`--verbose` / `-v` shows full tracebacks instead of a one-line message.
81
+
-`--verbose` / `-v` shows full tracebacks instead of a one-line message, and
82
+
adds the env-file line to the source report described under
83
+
[Where settings come from](#where-settings-come-from).
82
84
83
85
Failures exit non-zero with a short message on stderr and no traceback.
84
86
@@ -253,13 +255,29 @@ these forms:
253
255
-`(accounts.pwd.yaml found in the working directory)`
254
256
-`(accounts.pwd.yaml found in the working directory, ignored: no entry for domain '<domain>')`, when the discovered file is rejected for the reason given in step 2 above.
255
257
258
+
Those four forms all belong to a line labelled `credential file`. When no
259
+
credential file is used at all, the line is labelled `credentials` instead and
260
+
takes one of these forms:
261
+
262
+
-`OSW_USERNAME/OSW_PASSWORD (from the environment)`
263
+
-`OSW_USERNAME/OSW_PASSWORD (from the env file)`
264
+
-`not configured (set OSW_CRED_FILEPATH, or OSW_USERNAME/OSW_PASSWORD)`
265
+
266
+
The MCP server always prints both lines, the credential one first, then the
267
+
env-file one. The CLI prints one line by default, naming where the
268
+
credential came from. Pass `--verbose` to also print the env-file line. A
269
+
failing command prints both lines regardless of `--verbose`, so a report
270
+
still names every source that was checked.
271
+
256
272
For example, a verbose CLI run or the MCP server prints:
257
273
258
274
```text
259
275
[osw] credential file: /home/me/project/accounts.pwd.yaml (accounts.pwd.yaml found in the working directory)
260
276
[osw] env file : /home/me/project/.env (found from the working directory upward)
261
277
```
262
278
279
+
A non-verbose, successful CLI run prints only the first of those two lines.
280
+
263
281
### Credentials
264
282
265
283
Keep credentials in a gitignored file. They are read once per process, into that
0 commit comments