@thebushidocollective/han 1.8.1 → 1.8.2
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 +0 -48
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,54 +99,6 @@ Remove all Han plugins and marketplace configuration.
|
|
|
99
99
|
han uninstall
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
### han validate
|
|
103
|
-
|
|
104
|
-
Run validation commands across monorepo packages.
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
han validate [options] <command>
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
**Options:**
|
|
111
|
-
- `--fail-fast` - Stop on first failure
|
|
112
|
-
- `--dirs-with <file>` - Only run in directories containing the specified file
|
|
113
|
-
|
|
114
|
-
**Examples:**
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
# Run tests in all directories with package.json
|
|
118
|
-
han validate --dirs-with package.json npm test
|
|
119
|
-
|
|
120
|
-
# Run RSpec in all directories with Gemfile
|
|
121
|
-
han validate --fail-fast --dirs-with Gemfile bundle exec rspec
|
|
122
|
-
|
|
123
|
-
# Run go tests everywhere
|
|
124
|
-
han validate go test ./...
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
## Usage in Claude Code Hooks
|
|
128
|
-
|
|
129
|
-
Use han validate in Claude Code hooks for quality enforcement:
|
|
130
|
-
|
|
131
|
-
```json
|
|
132
|
-
{
|
|
133
|
-
"hooks": {
|
|
134
|
-
"Stop": [
|
|
135
|
-
{
|
|
136
|
-
"type": "command",
|
|
137
|
-
"command": "npx -y @thebushidocollective/han validate --fail-fast --dirs-with package.json npm test"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## Exit Codes
|
|
145
|
-
|
|
146
|
-
- `0` - Success
|
|
147
|
-
- `1` - Invalid usage or no directories found
|
|
148
|
-
- `2` - One or more validations failed
|
|
149
|
-
|
|
150
102
|
## Philosophy
|
|
151
103
|
|
|
152
104
|
> "Beginning is easy - continuing is hard." - Japanese Proverb
|