repos_status.ts view source
value + type
{ kind: "references_with_targets"; message: string; hint: string | null; } | { kind: "root_not_found"; message: string; hint: string | null; } | { kind: "registry_not_found"; message: string; hint: string | null; } | ... 7 more ... | { ...; } type { kind: "references_with_targets"; message: string; hint: string | null; } | { kind: "root_not_found"; message: string; hint: string | null; } | { kind: "registry_not_found"; message: string; hint: string | null; } | { kind: "root_in_entry"; key: string; message: string; hint: string | null; } | { kind: "registry_read"; message: string; hint: string | null; } | { kind: "registry_parse"; message: string; hint: string | null; } | { kind: "registry_invalid"; issues: ({ kind: "repo_not_owned"; key: string; account: string; } | { kind: "fork_not_owned"; key: string; } | { kind: "dir_not_a_name"; entry: { kind: "repo" | "reference"; key: string; }; dir: string; } | { kind: "dir_claimed_twice"; dir: string; first: { kind: "repo" | "reference"; key: string; }; second: { kind: "repo" | "reference"; key: string; }; } | { kind: "key_in_both"; key: string; } | { kind: "key_is_other_dir"; key: string; entry: { kind: "repo" | "reference"; key: string; }; } | { kind: "unknown_checkout_ref"; key: string; field: "requires" | "consults"; target: string; } | { kind: "self_ref"; key: string; field: "requires" | "consults"; } | { kind: "requires_and_consults"; key: string; target: string; })[]; message: string; hint: string | null; } | { kind: "git_not_found"; message: string; hint: string | null; } | { kind: "git_too_old"; found: string; required: string; message: string; hint: string | null; } | { kind: "unknown_entry"; name: string; suggestions: string[]; message: string; hint: string | null; } | { kind: "io"; message: string; hint: string | null; }
import {ReposStatusErrorBody} from '@fuzdev/fuz_repos/repos_status.js'; A fatal error as repos status --json prints it, its kind flattened
beside message and hint. Only the kinds status can print: the rest
of Rust's ErrorKind are repos push's, or precede knowing --json.