@startanaicompany/cli 1.4.10 → 1.4.11
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/package.json +1 -1
- package/src/commands/git.js +1 -1
- package/src/commands/status.js +10 -3
package/package.json
CHANGED
package/src/commands/git.js
CHANGED
|
@@ -36,7 +36,7 @@ async function connect(host) {
|
|
|
36
36
|
name: 'choice',
|
|
37
37
|
message: 'Select Git provider:',
|
|
38
38
|
choices: [
|
|
39
|
-
{ name: 'git.startanaicompany.com (
|
|
39
|
+
{ name: 'git.startanaicompany.com (Git StartanAICompany)', value: 'git.startanaicompany.com' },
|
|
40
40
|
{ name: 'github.com', value: 'github.com' },
|
|
41
41
|
{ name: 'gitlab.com', value: 'gitlab.com' },
|
|
42
42
|
{ name: 'Custom host', value: 'custom' },
|
package/src/commands/status.js
CHANGED
|
@@ -66,11 +66,18 @@ async function status() {
|
|
|
66
66
|
|
|
67
67
|
// Show account info
|
|
68
68
|
logger.field('User ID', userData.id);
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
|
|
70
|
+
// Show OAuth connections
|
|
71
|
+
if (userData.git_connections && userData.git_connections.length > 0) {
|
|
72
|
+
// Show all OAuth connections
|
|
73
|
+
userData.git_connections.forEach((conn, index) => {
|
|
74
|
+
const label = index === 0 ? 'Git Connection' : ' '; // Align subsequent connections
|
|
75
|
+
logger.field(label, `${conn.gitUsername} @ ${conn.gitHost}`);
|
|
76
|
+
});
|
|
71
77
|
} else {
|
|
72
|
-
logger.field('Git Connection', 'Not connected (use
|
|
78
|
+
logger.field('Git Connection', 'Not connected (use: saac git connect)');
|
|
73
79
|
}
|
|
80
|
+
|
|
74
81
|
logger.field('Applications', `${userData.application_count} / ${userData.max_applications}`);
|
|
75
82
|
|
|
76
83
|
logger.newline();
|