@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 +4 -2
- package/package.json +1 -1
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
|
|
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('
|
|
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