@xano/cli 0.0.47 → 0.0.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.
|
@@ -60,7 +60,7 @@ Opening browser for Xano login at https://custom.xano.com...`,
|
|
|
60
60
|
this.log('');
|
|
61
61
|
this.log('Fetching available branches...');
|
|
62
62
|
const branches = await this.fetchBranches(token, instance.origin, workspace.id);
|
|
63
|
-
if (branches.length >
|
|
63
|
+
if (branches.length > 1) {
|
|
64
64
|
branch = await this.selectBranch(branches);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -107,6 +107,10 @@ User Information:
|
|
|
107
107
|
this.log(` Name: ${inst.name}`);
|
|
108
108
|
if (inst.display)
|
|
109
109
|
this.log(` Display: ${inst.display}`);
|
|
110
|
+
if (profile.workspace)
|
|
111
|
+
this.log(` Workspace: ${profile.workspace}`);
|
|
112
|
+
if (profile.branch)
|
|
113
|
+
this.log(` Branch: ${profile.branch}`);
|
|
110
114
|
}
|
|
111
115
|
if (flags.verbose) {
|
|
112
116
|
knownFields.add('extras');
|
|
@@ -137,8 +137,8 @@ Profile 'production' created successfully at ~/.xano/credentials.yaml
|
|
|
137
137
|
catch (error) {
|
|
138
138
|
this.warn(`Failed to fetch branches: ${error instanceof Error ? error.message : String(error)}`);
|
|
139
139
|
}
|
|
140
|
-
// If branches
|
|
141
|
-
if (branches.length >
|
|
140
|
+
// If multiple branches exist, let user select one (skip if only one branch)
|
|
141
|
+
if (branches.length > 1) {
|
|
142
142
|
this.log('');
|
|
143
143
|
const { selectedBranch } = await inquirer.prompt([
|
|
144
144
|
{
|