gdx 0.3.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +30 -6
  2. package/dist/index.js +483 -442
  3. package/package.json +5 -3
package/README.md CHANGED
@@ -178,18 +178,36 @@ install dependencies using detected package managers (currently supports npm, pn
178
178
  if configured (see `parallel.init` config for options),
179
179
  getting the fork ready for work in no time.
180
180
 
181
- ### 5. Advanced Stash Management
181
+ ### 5. Git Output for Human (Experimental)
182
+
183
+ Admit it, Git's default output isn't exactly designed for readability.
184
+ `gdx` enhances the output of some commands with better formatting to make it more enjoyable and less "git" to read.
185
+
186
+ Currently, we only support enhanced formatting for `gdx diff` and `gdx show`,
187
+ but more commands will be added in the future. (feel free to request what commands you'd like to see enhanced!)
188
+
189
+ #### Example: `gdx diff`
190
+
191
+ ![diff example](https://github.com/Type-Delta/gdx/raw/main/resources/images/gdx-diff-enhance.png)
192
+
193
+ > [!NOTE]
194
+ > The enhanced output is only enabled when the output is TTY (i.e., in the terminal) plus other conditions based on the command (e.g., `diff` must be run without `--name-only`).
195
+ > If you pipe the output to a file or another command, it will fall back to the standard Git output.
196
+ >
197
+ > If you want to disable the enhanced output altogether, you can set `enhancedOutput` to `false` in the config.
198
+
199
+ ### 6. Advanced Stash Management
182
200
 
183
201
  Git stash is great until you need to clean it up.
184
202
 
185
203
  ```bash
186
204
  gdx sta l # git stash list
187
- gdx sta d 2..6 # Drops stashes 2 through 6.
205
+ gdx sta drop 2..6 # Drops stashes 2 through 6.
188
206
  # (Drops high->low to prevent index shifting)
189
- gdx sta d pardon # Restores the last dropped stash.
207
+ gdx stash d pardon # Restores the last dropped stash.
190
208
  ```
191
209
 
192
- ### 6. AI-Powered Commits
210
+ ### 7. Commits Message Generation
193
211
 
194
212
  Struggling to come up with a commit message? Let `gdx` do it for you.
195
213
 
@@ -198,11 +216,11 @@ gdx commit auto # Generates a commit message based on staged changes, then com
198
216
  # or
199
217
  # Generates a commit message based on staged changes, but does not commit them.
200
218
  # `--copy` also copies the message to clipboard.
201
- gdx commit auto --no-commit --copy
219
+ gdx cmi auto --no-commit --copy
202
220
  # You can also configure which LLM to use with `gdx-config`
203
221
  ```
204
222
 
205
- ### 7. Fun & Analytics
223
+ ### 8. Fun & Analytics
206
224
 
207
225
  Tools to help you feel productive without leaving the terminal.
208
226
 
@@ -210,6 +228,10 @@ Tools to help you feel productive without leaving the terminal.
210
228
  - **`gdx graph`**: Renders a GitHub-style contribution heatmap in your terminal using TrueColor.
211
229
  - **`gdx nocap`**: Uses AI to roast your latest commit message.
212
230
 
231
+ #### Example: `gdx stats`
232
+
233
+ ![stats example](https://github.com/Type-Delta/gdx/raw/main/resources/images/gdx-stats.png)
234
+
213
235
  ## Command Reference
214
236
 
215
237
  | Command | Expansion / Function |
@@ -220,6 +242,8 @@ Tools to help you feel productive without leaving the terminal.
220
242
  | `br`, `bra` | `git branch` |
221
243
  | `cmi`, `com` | `git commit` (Try `gdx cmi auto` for AI messages!) |
222
244
  | `res` | `git reset` (supports `res ~3`, `res -h` expansion) |
245
+ | `dif` | `git diff` (supports `dif ~3`, `dif origin ~2` expansion) |
246
+ | `sho` | `git show` (supports `sho ~3`, `sho origin ~2` expansion) |
223
247
  | `sta`, `st` | `git stash` |
224
248
  | `lint` | Run pre-push checks (spelling, secrets, etc.) |
225
249
  | `gdx-config` | Manage gdx configuration |