File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ const USAGE_HINT = "sentry log view <org>/<project> <log-id>";
2727 * Parse positional arguments for log view.
2828 * Handles: `<log-id>` or `<target> <log-id>`
2929 *
30+ * @param args - Positional arguments from CLI
3031 * @returns Parsed log ID and optional target arg
32+ * @throws {ContextError } If no arguments provided
3133 */
3234export function parsePositionalArgs ( args : string [ ] ) : {
3335 logId : string ;
@@ -49,7 +51,6 @@ export function parsePositionalArgs(args: string[]): {
4951
5052 const second = args [ 1 ] ;
5153 if ( second === undefined ) {
52- // Should not happen given length check, but TypeScript needs this
5354 return { logId : first , targetArg : undefined } ;
5455 }
5556
@@ -106,6 +107,11 @@ async function resolveFromProjectSearch(
106107
107108/**
108109 * Write human-readable log output to stdout.
110+ *
111+ * @param stdout - Output stream
112+ * @param log - The log entry to display
113+ * @param orgSlug - Organization slug for trace URLs
114+ * @param detectedFrom - Optional context detection source to display
109115 */
110116function writeHumanOutput (
111117 stdout : Writer ,
You can’t perform that action at this time.
0 commit comments