@staff0rd/assist 0.93.3 → 0.93.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/claude/commands/commit.md +3 -3
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -8,10 +8,10 @@ First run `assist commit status` to see the current state of the working tree.
|
|
|
8
8
|
|
|
9
9
|
Then either:
|
|
10
10
|
- `assist commit "your message"` to commit already-staged changes, or
|
|
11
|
-
- `assist commit <file1> <file2>
|
|
11
|
+
- `assist commit "your message" <file1> <file2> ...` to stage files and commit
|
|
12
12
|
|
|
13
13
|
Where:
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- The first argument is the commit message
|
|
15
|
+
- Any subsequent arguments are paths to git add before committing
|
|
16
16
|
- The commit message is 40 characters or less
|
|
17
17
|
- The commit message does not reference Claude
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.93.
|
|
9
|
+
version: "0.93.4",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -286,11 +286,11 @@ function commit(args) {
|
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
if (args.length < 1) {
|
|
289
|
-
console.error("Usage: assist commit [files...]
|
|
289
|
+
console.error("Usage: assist commit <message> [files...]");
|
|
290
290
|
process.exit(1);
|
|
291
291
|
}
|
|
292
|
-
const message = args[
|
|
293
|
-
const files = args.slice(
|
|
292
|
+
const message = args[0];
|
|
293
|
+
const files = args.slice(1);
|
|
294
294
|
const config = loadConfig();
|
|
295
295
|
validateMessage(message, config);
|
|
296
296
|
execCommit(files, message, config);
|