@temps-sdk/cli 0.1.15 → 0.1.16
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/index.js +19 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -73840,6 +73840,25 @@ async function create(options) {
|
|
|
73840
73840
|
return;
|
|
73841
73841
|
}
|
|
73842
73842
|
info(`Using git connection: ${connection.account_name}`);
|
|
73843
|
+
} else if (options.repo && skipPrompts) {
|
|
73844
|
+
const parts = options.repo.split("/");
|
|
73845
|
+
if (parts.length !== 2 || !parts[0] || !parts[1]) {
|
|
73846
|
+
error("Repository must be in owner/name format (e.g., myorg/myrepo)");
|
|
73847
|
+
return;
|
|
73848
|
+
}
|
|
73849
|
+
const connections = await fetchGitConnections();
|
|
73850
|
+
for (const conn of connections) {
|
|
73851
|
+
const repo = await findRepositoryByName(conn.id, parts[0], parts[1]);
|
|
73852
|
+
if (repo) {
|
|
73853
|
+
connection = conn;
|
|
73854
|
+
info(`Auto-selected git connection: ${conn.account_name}`);
|
|
73855
|
+
break;
|
|
73856
|
+
}
|
|
73857
|
+
}
|
|
73858
|
+
if (!connection) {
|
|
73859
|
+
error(`Repository "${options.repo}" not found in any git connection.`);
|
|
73860
|
+
return;
|
|
73861
|
+
}
|
|
73843
73862
|
} else {
|
|
73844
73863
|
connection = await selectGitConnection();
|
|
73845
73864
|
}
|