ardent-cli 0.0.12 → 0.0.13

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1026,8 +1026,13 @@ async function listAction2() {
1026
1026
  let cacheTime = "";
1027
1027
  try {
1028
1028
  const currentProjectId = getConfig("currentProjectId");
1029
- const projectFilter = currentProjectId ? `?project_id=${currentProjectId}` : "";
1030
- const result = await api.get(`/v1/cli/connectors${projectFilter}`);
1029
+ if (!currentProjectId) {
1030
+ console.error("\u2717 No current project set. Switch to a project first:");
1031
+ console.error(" ardent project list");
1032
+ console.error(" ardent project switch <name>");
1033
+ process.exit(1);
1034
+ }
1035
+ const result = await api.get(`/v1/cli/connectors?project_id=${currentProjectId}`);
1031
1036
  if (!result.connectors) {
1032
1037
  throw new Error("API returned invalid response: missing connectors array");
1033
1038
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ardent-cli",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Git for Data infrastructure",
5
5
  "type": "module",
6
6
  "bin": {