@xano/cli 0.0.91 → 0.0.93

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 CHANGED
@@ -124,8 +124,11 @@ xano workspace push ./my-workspace --records # Include table records
124
124
  xano workspace push ./my-workspace --env # Include environment variables
125
125
  xano workspace push ./my-workspace --truncate # Truncate tables before import
126
126
  xano workspace push ./my-workspace --no-transaction # Disable database transaction wrapping
127
- xano workspace push ./my-workspace --no-guids # Skip writing GUIDs back to local files
127
+ xano workspace push ./my-workspace --no-guids # Skip writing GUIDs back to local files
128
128
  xano workspace push ./my-workspace --force # Skip preview and confirmation (for CI/CD)
129
+ xano workspace push ./my-workspace -i "function/*" # Push only matching files
130
+ xano workspace push ./my-workspace -e "table/*" # Push all files except tables
131
+ xano workspace push ./my-workspace -i "function/*" -e "**/test*" # Include functions, exclude tests
129
132
 
130
133
  # Pull from a git repository to local files
131
134
  xano workspace git pull ./output -r https://github.com/owner/repo
@@ -336,7 +336,8 @@ Push functions but exclude test files
336
336
  .filter((d) => /^table\s+/m.test(d.content) && /\bitems\s*=\s*\[/m.test(d.content))
337
337
  .map((d) => {
338
338
  const nameMatch = d.content.match(/^table\s+(\S+)/m);
339
- const itemCount = (d.content.match(/^\s*\{$/gm) || []).length;
339
+ const itemsMatch = d.content.match(/\bitems\s*=\s*\[([\s\S]*?)\n\s*\]/);
340
+ const itemCount = itemsMatch ? (itemsMatch[1].match(/^\s*\{/gm) || []).length : 0;
340
341
  return { name: nameMatch ? nameMatch[1] : 'unknown', records: itemCount };
341
342
  })
342
343
  : [];