Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .agents/skills/add-command-spec/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Match the formatting conventions used in the command's `--help` output. For exam

Run `cargo test` to verify the spec deserializes correctly and any referenced `generatorName`s exist.

Format the JSON spec with `npm run format -- command-signatures/json/<command>.json`.

## Reference Examples

- **Simple spec with generator**: `json/kill.json` + `src/generators/kill.rs` — minimal example showing `generatorName` usage for process and signal completions
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ env:
CARGO_TERM_COLOR: always

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check JSON formatting
run: npm run format:check
lint:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
command-signatures/json/autogenerated/
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 4,
"plugins": ["prettier-plugin-multiline-arrays"],
"multilineArraysWrapThreshold": 1
}
2 changes: 1 addition & 1 deletion command-signatures/json/act.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,4 @@
"isPersistent": true
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/adb.json
Original file line number Diff line number Diff line change
Expand Up @@ -954,4 +954,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/afplay.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
"description": "Debug print output"
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/aftman.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
"description": "Show aftman's version"
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/ag.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,4 +516,4 @@
"description": "Separate the filenames with \u0000, rather than \n: this allows xargs -0 <command> to correctly process filenames containing spaces or newlines"
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/agrippa.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@
"args": {
"name": "component's name"
}
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/amplify.json
Original file line number Diff line number Diff line change
Expand Up @@ -684,4 +684,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/ansible-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,4 @@
"description": "Show help and exit"
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/ansible-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@
"postProcess": "function(o){let e=JSON.parse(o);return Object.keys(e).map(n=>({name:n,description:e[n]}))}"
}
}
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/ansible-galaxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1119,4 +1119,4 @@
"isPersistent": true
}
]
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/ansible-lint.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,4 @@
"isVariadic": true,
"template": "filepaths"
}
}
}
2 changes: 1 addition & 1 deletion command-signatures/json/appwrite.json
Original file line number Diff line number Diff line change
Expand Up @@ -5512,4 +5512,4 @@
"isPersistent": true
}
]
}
}
Loading