asc snitch
asc snitch: draft, preview or log an issue report about a problem with the asc command line itself.
asc snitch drafts a report about a problem with the asc command line itself (a bug, friction or a missing feature). Without --confirm it only prints a preview; with --confirm it files the report as a public GitHub issue on the asc project. With --local it keeps the report in a file in your project instead, to review later. It needs no Apple team; see asc for the flags every command shares.
| Subcommand | What it does |
|---|---|
asc snitch "description" |
Drafts, previews, files or logs a report. |
| flush | Prints the reports logged with --local. |
Report an issue
asc snitch [flags] "description" drafts an issue from the description and the flags. The title is the description, starting with Friction: or Feature: for those severities; the body adds the reproduction, expected and actual behavior, the asc version and the operating system.
| Flag | What it does | Default |
|---|---|---|
--actual |
Actual behavior or error message. | — |
--confirm |
File the issue after searching for duplicates. | false |
--dry-run |
Search for duplicates and preview without filing. | false |
--expected |
Expected behavior. | — |
--label |
Label to attach; it must already exist. Repeatable. | — |
--local |
Write the entry to .asc/snitch.log in the current folder instead of filing it. |
false |
--repro |
Reproduction command, such as the exact asc command that failed. |
— |
--severity |
Severity: bug, friction or feature-request. |
bug |
Notes:
- The description is required: without it the command exits
2withdescription is required. Put the flags before the description, and quote the whole description when it contains text that looks like a flag; a flag after the description is refused. - Before anything is shown, logged or filed, values that look like secrets (passwords, tokens, keys, credential headers) are replaced with
[REDACTED], and the command printsNote: sensitive values were redacted from the snitch report. - Without
--confirm, the command looks for similar existing issues, lists any it finds asPotentially related issues, and prints the draft (title, labels and body) on stderr.--dry-rundoes the same and never files, even with--confirm. - Searching for duplicates and filing need a GitHub token in
GITHUB_TOKENorGH_TOKEN. Without one, the duplicate search is skipped with “Note: skipping duplicate search because GITHUB_TOKEN or GH_TOKEN is not set.” and--confirmfails with “snitch: GITHUB_TOKEN or GH_TOKEN is required to create issues”. --labelvalues are checked against the labels that exist: an unknown label is refused before anything is filed, and when the check itself can’t run, the command warns and goes on (not with--local, which logs the labels as given).- With
--confirm, it printsIssue created:with the issue number and link on stderr, and a JSON receipt withnumber,html_urlandtitleon stdout. - With
--local(and no--dry-run), nothing leaves your machine: the entry is added to.asc/snitch.logand the command printsFriction logged to .asc/snitch.log.
asc snitch --repro 'asc crashes --app "1234567890"' --expected "Should resolve bundle ID" --actual "Error: AppId is invalid" --dry-run "crashes --app doesn't support bundle ID"flush
Prints the entries logged with asc snitch --local, numbered, with their severity, description, time, asc version, operating system and any reproduction, expected, actual and labels. Nothing is filed: to file one, run asc snitch again with its description and --confirm. With no entries it prints No local snitch entries found. and exits 0. It takes no arguments; use --file for another log.
| Flag | What it does | Default |
|---|---|---|
--file |
Path to the log file. | .asc/snitch.log |
asc snitch flush