Skip to content

Commit a34186b

Browse files
committed
removed more old references to the atomic argument
1 parent 93e0971 commit a34186b

File tree

14 files changed

+7
-44
lines changed

14 files changed

+7
-44
lines changed

docs/src/content/docs/features/atomic-identifiers.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ These transformations break the brand identity and can cause issues when the nam
2828

2929
## The Solution
3030

31-
With atomic mode, compound identifiers are preserved as single units:
31+
With atomic identifiers, compound identifiers are preserved as single units:
3232

3333
```bash
3434
# With atomic mode
@@ -38,11 +38,11 @@ DocSpring → DOCSPRING (SCREAMING_SNAKE_CASE)
3838
DocSpring → DocSpring (PascalCase - preserved)
3939
```
4040

41-
## Using Atomic Mode
41+
## With Atomic Identifiers
4242

4343
### Command Line Flags
4444

45-
You can specify atomic mode using CLI flags:
45+
You can enable atomic identifiers using CLI flags:
4646

4747
<Tabs>
4848
<TabItem label="Both atomic">

docs/src/content/docs/mcp/ai-guide.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ When things go wrong, explain the issue and provide solutions.
5757

5858
```
5959
Tool: renamify_apply
60-
Arguments: {
61-
"atomic": true
62-
}
6360
```
6461

6562
6. **Report the results**
@@ -277,10 +274,7 @@ Before applying changes in production:
277274

278275
3. Review with `format: "diff"` if requested
279276

280-
4. Apply with `atomic:
281-
true` always
282-
283-
5. Consider `commit: true` for automatic git commit
277+
4. Consider `commit: true` for automatic git commit
284278

285279
</Steps>
286280

@@ -473,7 +467,6 @@ For AI developers integrating Renamify MCP:
473467

474468
```json
475469
{
476-
"atomic": true, // Always use atomic operations
477470
"preview": "summary", // Best for AI agents
478471
"commit": false, // Let user decide
479472
"dryRun": false, // Unless explicitly testing

docs/src/content/docs/mcp/examples.mdx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ User: "Yes, apply the changes"
5353
AI: Applying the renaming now:
5454
5555
Tool: renamify_apply
56-
Arguments: {
57-
"atomic": true
58-
}
5956
6057
Result: Successfully applied 23 replacements across 8 files and renamed 2 files.
6158
@@ -187,7 +184,6 @@ Summary:
187184
```
188185
Tool: renamify_apply
189186
Arguments: {
190-
"atomic": true,
191187
"commit": true
192188
}
193189
```
@@ -269,9 +265,6 @@ Created plan: 5b2a7f9c1e4d8f3a
269265
Now applying the changes:
270266
271267
Tool: renamify_apply
272-
Arguments: {
273-
"atomic": true
274-
}
275268
276269
Result: Successfully applied 42 replacements
277270

docs/src/content/docs/mcp/overview.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ User: "Yes, apply the changes"
176176
AI: I'll apply the renaming plan now:
177177
178178
Tool: renamify_apply
179-
Arguments: {
180-
"atomic": true
181-
}
182179
183180
Result: Successfully applied 47 replacements across 12 files and renamed 3 files
184181
```

docs/src/content/docs/mcp/tools.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Arguments: {
120120
}
121121
```
122122

123-
With atomic mode, compound words like "DocSpring" are treated as single units, preventing unwanted word boundary detection (e.g., `doc_spring`).
123+
With atomic identifiers, compound words like "DocSpring" are treated as single units, preventing unwanted word boundary detection (e.g., `doc_spring`).
124124

125125
### Response Example
126126

@@ -151,15 +151,13 @@ Applies a renaming plan to make the actual changes to your codebase.
151151
| ---------- | ------- | -------- | ------- | ------------------------- |
152152
| `planId` | string | No | Latest | Specific plan ID to apply |
153153
| `planPath` | string | No | Auto | Path to plan file |
154-
| `atomic` | boolean | No | `true` | All-or-nothing execution |
155154
| `commit` | boolean | No | `false` | Create git commit after |
156155

157156
### Example Usage
158157

159158
```
160159
Tool: renamify_apply
161160
Arguments: {
162-
"atomic": true,
163161
"commit": true
164162
}
165163
```

renamify-cli/src/replace.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ pub fn handle_replace(
144144
let apply_options = renamify_core::ApplyOptions {
145145
create_backups: true,
146146
backup_dir: PathBuf::from(".renamify/backups"),
147-
atomic: true,
148147
commit: false,
149148
force: force_with_conflicts,
150149
skip_symlinks: false,

renamify-core/src/apply.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ pub struct ApplyOptions {
1515
pub create_backups: bool,
1616
/// Path to backup directory
1717
pub backup_dir: PathBuf,
18-
/// Perform atomic operations
19-
pub atomic: bool,
2018
/// Commit changes to git after successful apply
2119
pub commit: bool,
2220
/// Force apply even with conflicts
@@ -32,7 +30,6 @@ impl Default for ApplyOptions {
3230
Self {
3331
create_backups: true,
3432
backup_dir: PathBuf::from(".renamify/backups"),
35-
atomic: true,
3633
commit: false,
3734
force: false,
3835
skip_symlinks: true,
@@ -621,9 +618,7 @@ pub fn apply_plan(plan: &mut Plan, options: &ApplyOptions) -> Result<()> {
621618
e
622619
))?;
623620

624-
if options.atomic {
625-
rollback(&mut state)?;
626-
}
621+
rollback(&mut state)?;
627622

628623
return Err(e);
629624
}
@@ -693,9 +688,7 @@ pub fn apply_plan(plan: &mut Plan, options: &ApplyOptions) -> Result<()> {
693688
if let Err(e) = perform_rename(&adjusted_from, &adjusted_to, is_dir, &mut state) {
694689
state.log(&format!("Error performing rename: {}", e))?;
695690

696-
if options.atomic {
697-
rollback(&mut state)?;
698-
}
691+
rollback(&mut state)?;
699692

700693
return Err(e);
701694
}

renamify-core/src/operations/apply.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ pub fn apply_operation(
4444
let apply_options = ApplyOptions {
4545
backup_dir: renamify_dir.join("backups"),
4646
create_backups: true,
47-
atomic: true,
4847
commit,
4948
force,
5049
skip_symlinks: false,

renamify-core/src/operations/rename.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ fn apply_rename_changes(plan: &mut Plan, commit: bool, force_with_conflicts: boo
381381
let apply_options = ApplyOptions {
382382
create_backups: true,
383383
backup_dir,
384-
atomic: true,
385384
commit,
386385
force: force_with_conflicts,
387386
skip_symlinks: false,

renamify-core/src/undo.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ pub fn redo_renaming(id: &str, renamify_dir: &Path) -> Result<()> {
392392
let options = ApplyOptions {
393393
backup_dir: renamify_dir.join("backups"),
394394
create_backups: true,
395-
atomic: true,
396395
..Default::default()
397396
};
398397

0 commit comments

Comments
 (0)