Commit 0083b13
[feature] Implement file.pwd() (#1419)
* feat(eldritch-libfile): Add pwd method
Added `pwd` method to `FileLibrary` trait and implementations.
- `lib.rs`: Added `pwd` to trait definition.
- `std.rs`: Implemented `pwd` using `std::env::current_dir`.
- `fake.rs`: Implemented mock `pwd`.
- Added unit test for `pwd`.
* feat(eldritch-libfile): Add pwd method and update documentation
Added `pwd` method to `FileLibrary` trait and implementations.
- `lib.rs`: Added `pwd` to trait definition.
- `std.rs`: Implemented `pwd` using `std::env::current_dir`.
- `fake.rs`: Implemented mock `pwd`.
- Added unit test for `pwd`.
- Updated `eldritch.md` with documentation for `file.pwd`, labeled as `(V2-Only)`.
* feat(eldritch-libfile): Add pwd method, update documentation and tests
Added `pwd` method to `FileLibrary` trait and implementations.
- `lib.rs`: Added `pwd` to trait definition.
- `std.rs`: Implemented `pwd` using `std::env::current_dir`.
- `fake.rs`: Implemented mock `pwd`.
- Added unit test for `pwd`.
- Updated `eldritch.md` with documentation for `file.pwd`, labeled as `(V2-Only)`.
- Updated `bindings_test.rs` to verify `file.pwd` is exposed.
* feat(eldritch-libfile): Add pwd method, update documentation and tests
Added `pwd` method to `FileLibrary` trait and implementations.
- `lib.rs`: Added `pwd` to trait definition.
- `std.rs`: Implemented `pwd` using `std::env::current_dir`.
- `fake.rs`: Implemented mock `pwd`.
- Added unit test for `pwd`.
- Updated `eldritch.md` with documentation for `file.pwd`, labeled as `(V2-Only)`.
- Updated `bindings_test.rs` to verify `file.pwd` is exposed.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: KCarretto <Kcarretto@gmail.com>1 parent 3c61bbc commit 0083b13
File tree
5 files changed
+34
-0
lines changed- docs/_docs/user-guide
- implants/lib/eldritchv2
- eldritchv2/src
- stdlib/eldritch-libfile/src
5 files changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
458 | 464 | | |
459 | 465 | | |
460 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
226 | 233 | | |
227 | 234 | | |
228 | 235 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
1346 | 1352 | | |
1347 | 1353 | | |
1348 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
1349 | 1365 | | |
0 commit comments