@archildata/just-bash 0.1.6 → 0.1.7
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 +3 -3
- package/dist/shell.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ Archil uses a delegation system for write access. Before writing, you need to "c
|
|
|
54
54
|
const inodeId = await fs.resolveInodeId('/mydir');
|
|
55
55
|
|
|
56
56
|
// Checkout to get write access
|
|
57
|
-
await client.checkout(inodeId
|
|
57
|
+
await client.checkout(inodeId);
|
|
58
58
|
|
|
59
59
|
// Now you can write
|
|
60
60
|
await bash.exec('echo "hello" > /mydir/newfile.txt');
|
|
@@ -63,10 +63,10 @@ await bash.exec('echo "hello" > /mydir/newfile.txt');
|
|
|
63
63
|
await client.checkin(inodeId);
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
For shared/multi-client access, use
|
|
66
|
+
For shared/multi-client access, use `force` to revoke existing delegations:
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
|
-
await client.checkout(inodeId,
|
|
69
|
+
await client.checkout(inodeId, { force: true });
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
## With User Context
|
package/dist/shell.js
CHANGED
|
@@ -130,7 +130,7 @@ Received ${signal}, cleaning up...`);
|
|
|
130
130
|
const fullPath = resolvePath(pathArg);
|
|
131
131
|
try {
|
|
132
132
|
const inodeId = await fs.resolveInodeId(fullPath);
|
|
133
|
-
await client.checkout(inodeId, force);
|
|
133
|
+
await client.checkout(inodeId, { force });
|
|
134
134
|
console.log(`Checked out: ${fullPath} (inode ${inodeId})${force ? " (forced)" : ""}`);
|
|
135
135
|
} catch (err) {
|
|
136
136
|
console.error(`Failed to checkout ${fullPath}:`, err instanceof Error ? err.message : err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archildata/just-bash",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Archil filesystem adapter for just-bash",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"shell": "tsx bin/shell.ts"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@archildata/client": "^0.1.
|
|
29
|
+
"@archildata/client": "^0.1.8",
|
|
30
30
|
"commander": "^14.0.3",
|
|
31
31
|
"debug": "^4.3.4",
|
|
32
32
|
"just-bash": "^2.7.0"
|