Skip to content

Commit c4f36e3

Browse files
committed
[exoframe-cli] Fix list selection, use new select component
1 parent a104199 commit c4f36e3

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

packages/exoframe-cli/src/handlers/config/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export const configPrompts = {
280280
],
281281
restart: (config) => [
282282
{
283-
type: 'list',
283+
type: 'select',
284284
name: 'restart',
285285
message: 'Restart policy:',
286286
default: config.restart,

packages/exoframe-cli/src/handlers/endpoint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const endpointSwitchHandler = async (url) => {
5454
// if multiple - show selector
5555
const prompts = [];
5656
prompts.push({
57-
type: 'list',
57+
type: 'select',
5858
name: 'newEndpoint',
5959
message: 'Choose endpoint:',
6060
default: userConfig.endpoint,
@@ -119,7 +119,7 @@ export const endpointRmHandler = async (url) => {
119119
// if multiple - show selector
120120
const prompts = [];
121121
prompts.push({
122-
type: 'list',
122+
type: 'select',
123123
name: 'delEndpoint',
124124
message: 'Choose endpoint to remove:',
125125
default: userConfig.endpoint,

packages/exoframe-cli/src/handlers/secrets/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const getSecretHandler = async (name, { yes } = {}) => {
2626
const secrets = await listSecrets({ endpoint, token });
2727
const prompts = [];
2828
prompts.push({
29-
type: 'list',
29+
type: 'select',
3030
name: 'selectedSecret',
3131
message: `Choose secret to get`,
3232
choices: secrets.map((t) => t.name),

packages/exoframe-cli/src/handlers/secrets/remove.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const removeSecretHandler = async (name) => {
2626
const secrets = await listSecrets({ endpoint, token });
2727
const prompts = [];
2828
prompts.push({
29-
type: 'list',
29+
type: 'select',
3030
name: 'selectedSecret',
3131
message: `Choose secret to get`,
3232
choices: secrets.map((t) => t.name),

packages/exoframe-cli/src/handlers/template/remove.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const templateRemoveHandler = async (name, { verbose } = {}) => {
2828
const templates = await listTemplates({ endpoint, token });
2929
const prompts = [];
3030
prompts.push({
31-
type: 'list',
31+
type: 'select',
3232
name: 'templateName',
3333
message: 'Choose template to remove:',
3434
choices: Object.keys(templates),

packages/exoframe-cli/src/handlers/token/remove.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const tokenRemoveHandler = async (name) => {
2828
const tokens = await listTokens({ endpoint, token });
2929
const prompts = [];
3030
prompts.push({
31-
type: 'list',
31+
type: 'select',
3232
name: 'tokenName',
3333
message: 'Choose token to remove:',
3434
choices: tokens.map((t) => t.tokenName),

0 commit comments

Comments
 (0)