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
test: update snapshots for banner and help text improvements
Updated 66 test files with new snapshots reflecting recent CLI improvements
including banner output, help text enhancements, and dry-run messages.
Changes:
- Help text snapshots now capture full documentation (previously empty)
- Banner output added to stderr with CLI version, token, org status
- Dry-run messages now show "[DryRun]: Bailing now" and similar
- Interactive help menu updates with categorized command groups
Snapshot Stats:
- 66 test files updated
- 2,781 lines added, 399 lines deleted
All snapshot changes are legitimate improvements to CLI output.
"Automatically discover and set the correct value config item
17
+
18
+
Usage
19
+
$ socket config auto [options] KEY
20
+
21
+
Options
22
+
--json Output as JSON
23
+
--markdown Output as Markdown
24
+
25
+
Attempt to automatically discover the correct value for a given config KEY.
26
+
27
+
Examples
28
+
$ socket config auto defaultOrg
29
+
30
+
Keys:
31
+
- apiBaseUrl -- Base URL of the Socket API endpoint
32
+
- apiProxy -- A proxy through which to access the Socket API
33
+
- apiToken -- The Socket API token required to access most Socket API endpoints
34
+
- defaultOrg -- The default org slug to use; usually the org your Socket API token has access to. When set, all orgSlug arguments are implied to be this value.
35
+
- enforcedOrgs -- Orgs in this list have their security policies enforced on this machine
36
+
- org -- Alias for defaultOrg
37
+
- skipAskToPersistDefaultOrg -- This flag prevents the Socket CLI from asking you to persist the org slug when you selected one interactively"
Retrieve the value for given KEY at this time. If you have overridden the
26
+
config then the value will come from that override.
27
+
28
+
Options
29
+
--json Output as JSON
30
+
--markdown Output as Markdown
31
+
32
+
KEY is an enum. Valid keys:
33
+
34
+
- apiBaseUrl -- Base URL of the Socket API endpoint
35
+
- apiProxy -- A proxy through which to access the Socket API
36
+
- apiToken -- The Socket API token required to access most Socket API endpoints
37
+
- defaultOrg -- The default org slug to use; usually the org your Socket API token has access to. When set, all orgSlug arguments are implied to be this value.
38
+
- enforcedOrgs -- Orgs in this list have their security policies enforced on this machine
39
+
- org -- Alias for defaultOrg
40
+
- skipAskToPersistDefaultOrg -- This flag prevents the Socket CLI from asking you to persist the org slug when you selected one interactively
41
+
42
+
Examples
43
+
$ socket config get defaultOrg"
44
+
`)
20
45
// Node 24 on Windows currently fails this test with added stderr:
21
46
// Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 76
0 commit comments