@xano/cli 0.0.47 → 0.0.49

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 > 0) {
63
+ if (branches.length > 1) {
64
64
  branch = await this.selectBranch(branches);
65
65
  }
66
66
  }
@@ -78,6 +78,10 @@ User Information:
78
78
  }
79
79
  else {
80
80
  // summary format
81
+ this.log('CLI Information:');
82
+ this.log(` Profile: ${profileName}`);
83
+ this.log(` Version: ${this.config.version}`);
84
+ this.log('');
81
85
  this.log('User Information:');
82
86
  if (data.id !== undefined) {
83
87
  this.log(` ID: ${data.id}`);
@@ -107,6 +111,10 @@ User Information:
107
111
  this.log(` Name: ${inst.name}`);
108
112
  if (inst.display)
109
113
  this.log(` Display: ${inst.display}`);
114
+ if (profile.workspace)
115
+ this.log(` Workspace: ${profile.workspace}`);
116
+ if (profile.branch)
117
+ this.log(` Branch: ${profile.branch}`);
110
118
  }
111
119
  if (flags.verbose) {
112
120
  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 were fetched, let user select one
141
- if (branches.length > 0) {
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
  {