@glash/cli 0.2.47 → 0.2.48

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/commands/pull.mjs CHANGED
@@ -55,13 +55,15 @@ export async function pull(parsed) {
55
55
  async function chooseProject() {
56
56
  let projects;
57
57
  try {
58
- projects = await apiGet('/projects');
58
+ // Only projects this account owns: pulling takes the source and the
59
+ // runtime secrets, so anything else here would fail at the server anyway.
60
+ projects = await apiGet('/projects?ownedOnly=true');
59
61
  } catch (e) {
60
62
  fail(`Could not list your projects: ${e.message}`);
61
63
  return null;
62
64
  }
63
65
  if (!projects?.length) {
64
- fail('This account has no projects yet. Run `glash projects:new` first.');
66
+ fail('No projects you own. Pulling is limited to projects owned by your account.');
65
67
  return null;
66
68
  }
67
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glash/cli",
3
- "version": "0.2.47",
3
+ "version": "0.2.48",
4
4
  "description": "glashDB command-line interface - deploy projects, pull source + env, manage env vars.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://glashdb.com",