git-coco 0.57.0 → 0.58.0
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/README.md +8 -6
- package/dist/index.d.ts +6 -3
- package/dist/index.esm.mjs +18351 -17910
- package/dist/index.js +18351 -17910
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ coco init
|
|
|
37
37
|
|
|
38
38
|
# Generate your first commit
|
|
39
39
|
git add .
|
|
40
|
-
coco -i
|
|
40
|
+
coco commit -i
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## Commands
|
|
@@ -50,6 +50,8 @@ coco -i
|
|
|
50
50
|
- **`coco ui`** - Open the full-screen Git workstation TUI
|
|
51
51
|
- **`coco init`** - Interactive setup wizard
|
|
52
52
|
|
|
53
|
+
> **Smart default (0.57.0+):** running `coco` with **no subcommand** routes by environment — `coco ui` inside a git repo, `coco workspace` outside one, or `coco init` on a fresh install. It no longer defaults to `commit`; use `coco commit` for messages (or `--commit` / `COCO_DEFAULT=commit` to restore the old default).
|
|
54
|
+
|
|
53
55
|
## Usage Examples
|
|
54
56
|
|
|
55
57
|
### Basic Workflow
|
|
@@ -59,23 +61,23 @@ coco -i
|
|
|
59
61
|
git add .
|
|
60
62
|
|
|
61
63
|
# Generate commit message (interactive mode recommended)
|
|
62
|
-
coco -i
|
|
64
|
+
coco commit -i
|
|
63
65
|
|
|
64
66
|
# Or use stdout mode
|
|
65
|
-
git commit -m "$(coco)"
|
|
67
|
+
git commit -m "$(coco commit)"
|
|
66
68
|
```
|
|
67
69
|
|
|
68
70
|
### Conventional Commits
|
|
69
71
|
|
|
70
72
|
```bash
|
|
71
73
|
# Enable conventional commits format
|
|
72
|
-
coco --conventional
|
|
74
|
+
coco commit --conventional
|
|
73
75
|
|
|
74
76
|
# With additional context
|
|
75
|
-
coco -a "Fixes login timeout" --conventional
|
|
77
|
+
coco commit -a "Fixes login timeout" --conventional
|
|
76
78
|
|
|
77
79
|
# Include ticket from branch name
|
|
78
|
-
coco --append-ticket --conventional
|
|
80
|
+
coco commit --append-ticket --conventional
|
|
79
81
|
```
|
|
80
82
|
|
|
81
83
|
### Team Workflows
|
package/dist/index.d.ts
CHANGED
|
@@ -363,10 +363,13 @@ type BaseConfig = {
|
|
|
363
363
|
workspace?: {
|
|
364
364
|
/**
|
|
365
365
|
* Directories to scan for git repositories. Each entry may use a
|
|
366
|
-
* `~` prefix; resolved against the user's home directory.
|
|
367
|
-
*
|
|
366
|
+
* `~` prefix; resolved against the user's home directory. When
|
|
367
|
+
* omitted (and no `--root` flag is passed), the workspace scans the
|
|
368
|
+
* current working directory — so a bare `coco` / `coco ws` discovers
|
|
369
|
+
* repos wherever you launched it. Set this to pin a fixed tree (e.g.
|
|
370
|
+
* `["~/code"]`) regardless of where you run from.
|
|
368
371
|
*
|
|
369
|
-
*
|
|
372
|
+
* (No static `@default` — the effective default is the runtime cwd.)
|
|
370
373
|
*/
|
|
371
374
|
roots?: string[];
|
|
372
375
|
/**
|