appwrite-ctl 1.0.1 → 1.0.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/dist/cli/index.js +1 -1
- package/dist/lib/diagram.js +19 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
package/dist/lib/diagram.js
CHANGED
|
@@ -156,12 +156,27 @@ const buildBucketsDoc = (buckets) => {
|
|
|
156
156
|
return '';
|
|
157
157
|
const lines = [];
|
|
158
158
|
lines.push('## Buckets');
|
|
159
|
-
lines.push('');
|
|
160
|
-
lines.push('| Name | ID | Max Size | Extensions | Compression | Encryption | Antivirus | Enabled |');
|
|
161
|
-
lines.push('| --- | --- | --- | --- | --- | --- | --- | --- |');
|
|
162
159
|
for (const b of buckets) {
|
|
163
160
|
const extensions = b.allowedFileExtensions.length > 0 ? b.allowedFileExtensions.join(', ') : 'any';
|
|
164
|
-
|
|
161
|
+
const status = b.enabled ? '🟢 Enabled' : '🔴 Disabled';
|
|
162
|
+
lines.push('');
|
|
163
|
+
lines.push(`### ${b.name} (\`${b.$id}\`)`);
|
|
164
|
+
lines.push('');
|
|
165
|
+
lines.push(`- **Status:** ${status}`);
|
|
166
|
+
lines.push('');
|
|
167
|
+
lines.push('| Max Size | Extensions | Compression | Encryption | Antivirus | File Security |');
|
|
168
|
+
lines.push('| --- | --- | --- | --- | --- | --- |');
|
|
169
|
+
lines.push(`| ${formatFileSize(b.maximumFileSize)} | ${extensions} | ${b.compression} | ${b.encryption ? '✅' : '—'} | ${b.antivirus ? '✅' : '—'} | ${b.fileSecurity ? 'Yes' : 'No'} |`);
|
|
170
|
+
if (b.$permissions.length > 0) {
|
|
171
|
+
lines.push('');
|
|
172
|
+
lines.push('**Permissions:**');
|
|
173
|
+
lines.push('');
|
|
174
|
+
lines.push('| Permission |');
|
|
175
|
+
lines.push('| --- |');
|
|
176
|
+
for (const perm of b.$permissions) {
|
|
177
|
+
lines.push(`| \`${perm}\` |`);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
165
180
|
}
|
|
166
181
|
return lines.join('\n');
|
|
167
182
|
};
|